Class VariableDeclStatement
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.scripting.statement.Statement
org.rumbledb.expressions.scripting.declaration.VariableDeclStatement
-
Field Summary
Fields inherited from class org.rumbledb.expressions.scripting.statement.Statement
isSequential, staticContext, staticSequenceType
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionVariableDeclStatement
(List<Annotation> annotations, Name variableName, SequenceType variableSequenceType, Expression variableExpression, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.Returns all children nodes as a list.boolean
void
serializeToJSONiq
(StringBuffer sb, int indent) Methods inherited from class org.rumbledb.expressions.scripting.statement.Statement
getStaticContext, getStaticContextForRuntime, getStaticSequenceType, isSequential, print, setSequential, setStaticContext, setStaticSequenceType
Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Constructor Details
-
VariableDeclStatement
public VariableDeclStatement(List<Annotation> annotations, Name variableName, SequenceType variableSequenceType, Expression variableExpression, ExceptionMetadata metadata)
-
-
Method Details
-
accept
Description copied from class:Node
Accept method for the visitor pattern. -
getChildren
Description copied from class:Node
Returns all children nodes as a list. The list is new and can be modified at will by the caller.- Specified by:
getChildren
in classNode
- Returns:
- the children nodes as a list.
-
serializeToJSONiq
- Specified by:
serializeToJSONiq
in classNode
-
getSequenceType
-
getVariableName
-
getActualSequenceType
-
getVariableExpression
-
getAnnotations
-
isAssignable
public boolean isAssignable()
-