Package org.rumbledb.expressions.module
Class VariableDeclaration
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.module.VariableDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Expressionprotected final SequenceTypeprotected ExecutionModeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode, isInSequentialBlock -
Constructor Summary
ConstructorsConstructorDescriptionVariableDeclaration(Name variableName, boolean external, SequenceType sequenceType, Expression expression, List<Annotation> annotations, ExceptionMetadata metadata) VariableDeclaration(Name variableName, boolean external, SequenceType sequenceType, Expression expression, List<Annotation> annotations, ExceptionMetadata metadata, ExceptionMetadata variableMetadata) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.booleanexternal()Returns all children nodes as a list.getVariableHighestStorageMode(VisitorConfig visitorConfig) voidprint(StringBuilder buffer, int indent) Prints the node tree to a string buffer.voidserializeToJSONiq(StringBuilder sb, int indent) Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, indentIt, isContextDependent, numberOfUnsetExecutionModes, setIsInSequentialBlock, toString
-
Field Details
-
sequenceType
-
expression
-
variableHighestStorageMode
-
-
Constructor Details
-
VariableDeclaration
public VariableDeclaration(Name variableName, boolean external, SequenceType sequenceType, Expression expression, List<Annotation> annotations, ExceptionMetadata metadata) -
VariableDeclaration
public VariableDeclaration(Name variableName, boolean external, SequenceType sequenceType, Expression expression, List<Annotation> annotations, ExceptionMetadata metadata, ExceptionMetadata variableMetadata)
-
-
Method Details
-
external
public boolean external() -
getSequenceType
-
getActualSequenceType
-
getChildren
Description copied from class:NodeReturns all children nodes as a list. The list is new and can be modified at will by the caller.- Specified by:
getChildrenin classNode- Returns:
- the children nodes as a list.
-
accept
Description copied from class:NodeAccept method for the visitor pattern. -
getVariableHighestStorageMode
-
print
Description copied from class:NodePrints the node tree to a string buffer. -
serializeToJSONiq
- Specified by:
serializeToJSONiqin classNode
-
getAnnotations
-