Package org.rumbledb.expressions.flowr
Class LetClause
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.flowr.Clause
org.rumbledb.expressions.flowr.LetClause
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expression
protected SequenceType
protected SequenceType
protected ExecutionMode
Fields inherited from class org.rumbledb.expressions.flowr.Clause
clauseType, nextClause, previousClause, staticContext
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionLetClause
(Name variableName, SequenceType sequenceType, Expression expression, ExceptionMetadata metadataFromContext) -
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
getVariableHighestStorageMode
(VisitorConfig visitorConfig) void
print
(StringBuffer buffer, int indent) Prints the node tree to a string buffer.void
serializeToJSONiq
(StringBuffer sb, int indent) void
setReferenced
(boolean isReferenced) void
setStaticType
(SequenceType staticType) void
Methods inherited from class org.rumbledb.expressions.flowr.Clause
chainWith, detachInitialLetClauses, detachInitialLetClausesForStatements, getClauseType, getFirstClause, getLastClause, getNextClause, getPreviousClause, getStaticContext, getStaticContextForRuntime, setStaticContext
Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Field Details
-
sequenceType
-
staticType
-
expression
-
variableHighestStorageMode
-
-
Constructor Details
-
LetClause
public LetClause(Name variableName, SequenceType sequenceType, Expression expression, ExceptionMetadata metadataFromContext)
-
-
Method Details
-
getVariableName
-
getSequenceType
-
getActualSequenceType
-
getExpression
-
getVariableHighestStorageMode
-
setVariableHighestExecutionMode
-
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. -
print
Description copied from class:Node
Prints the node tree to a string buffer. -
serializeToJSONiq
- Specified by:
serializeToJSONiq
in classNode
-
getStaticType
-
setStaticType
-
getReferenced
public boolean getReferenced() -
setReferenced
public void setReferenced(boolean isReferenced)
-