Package org.rumbledb.expressions.module
Class VariableDeclaration
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.module.VariableDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expression
protected SequenceType
protected ExecutionMode
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionVariableDeclaration
(Name variableName, boolean external, SequenceType sequenceType, Expression expression, List<Annotation> annotations, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.boolean
external()
Returns all children nodes as a list.getVariableHighestStorageMode
(VisitorConfig visitorConfig) boolean
void
print
(StringBuffer buffer, int indent) Prints the node tree to a string buffer.void
serializeToJSONiq
(StringBuffer sb, int indent) void
Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Field Details
-
sequenceType
-
expression
-
variableHighestStorageMode
-
-
Constructor Details
-
VariableDeclaration
public VariableDeclaration(Name variableName, boolean external, SequenceType sequenceType, Expression expression, List<Annotation> annotations, ExceptionMetadata metadata)
-
-
Method Details
-
getVariableName
-
external
public boolean external() -
getSequenceType
-
getActualSequenceType
-
getExpression
-
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.
-
accept
Description copied from class:Node
Accept method for the visitor pattern. -
getVariableHighestStorageMode
-
setVariableHighestStorageMode
-
print
Description copied from class:Node
Prints the node tree to a string buffer. -
serializeToJSONiq
- Specified by:
serializeToJSONiq
in classNode
-
getAnnotations
-
isAssignable
public boolean isAssignable()
-