Class StatementsAndExpr
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.scripting.statement.StatementsAndExpr
-
Field Summary
FieldsFields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticSequenceTypeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode -
Constructor Summary
ConstructorsConstructorDescriptionStatementsAndExpr(List<Statement> statements, 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.Retrieves the static context attached to this expression.voidserializeToJSONiq(StringBuffer sb, int indent) voidsetStaticContext(StaticContext staticContext) Sets the static context of the expression.Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getExpressionClassification, getStaticContextForRuntime, getStaticSequenceType, isSequential, isUnset, isUpdating, isUpdatingNonSequential, print, setExpressionClassification, setSequential, setStaticSequenceTypeMethods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Field Details
-
staticContext
-
-
Constructor Details
-
StatementsAndExpr
public StatementsAndExpr(List<Statement> statements, Expression expression, ExceptionMetadata metadata)
-
-
Method Details
-
accept
Description copied from class:NodeAccept method for the visitor pattern. -
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.
-
serializeToJSONiq
- Specified by:
serializeToJSONiqin classNode
-
getStatements
-
getExpression
-
getStaticContext
Description copied from class:ExpressionRetrieves the static context attached to this expression.- Overrides:
getStaticContextin classExpression- Returns:
- the static context.
-
setStaticContext
Description copied from class:ExpressionSets the static context of the expression.- Overrides:
setStaticContextin classExpression- Parameters:
staticContext- the static context to set.
-