Package org.rumbledb.expressions.flowr
Class ForClause
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.flowr.Clause
org.rumbledb.expressions.flowr.ForClause
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected SequenceTypeprotected ExecutionModeFields inherited from class org.rumbledb.expressions.flowr.Clause
clauseType, nextClause, previousClause, staticContextFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode -
Constructor Summary
ConstructorsConstructorDescriptionForClause(Name variableName, boolean allowEmpty, SequenceType sequenceType, Name positionalVariableName, Expression expression, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.Returns all children nodes as a list.getVariableHighestStorageMode(VisitorConfig visitorConfig) booleanvoidprint(StringBuffer buffer, int indent) Prints the node tree to a string buffer.voidserializeToJSONiq(StringBuffer sb, int indent) voidMethods inherited from class org.rumbledb.expressions.flowr.Clause
chainWith, detachInitialLetClauses, detachInitialLetClausesForStatements, getClauseType, getFirstClause, getLastClause, getNextClause, getPreviousClause, getStaticContext, getStaticContextForRuntime, setStaticContextMethods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Field Details
-
sequenceType
-
expression
-
variableHighestStorageMode
-
-
Constructor Details
-
ForClause
public ForClause(Name variableName, boolean allowEmpty, SequenceType sequenceType, Name positionalVariableName, Expression expression, ExceptionMetadata metadata)
-
-
Method Details
-
getVariableName
-
isAllowEmpty
public boolean isAllowEmpty() -
getPositionalVariableName
-
getSequenceType
-
getActualSequenceType
-
getExpression
-
getVariableHighestStorageMode
-
setVariableHighestStorageMode
-
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. -
print
Description copied from class:NodePrints the node tree to a string buffer. -
serializeToJSONiq
- Specified by:
serializeToJSONiqin classNode
-