Class StatementsAndOptionalExpr
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.scripting.statement.StatementsAndOptionalExpr
-
Field Summary
FieldsFields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticSequenceType
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionStatementsAndOptionalExpr
(List<Statement> statements, Expression expression, ExceptionMetadata metadata) StatementsAndOptionalExpr
(ExceptionMetadata metadata) -
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.Retrieves the static context attached to this expression.void
serializeToJSONiq
(StringBuffer sb, int indent) void
setStaticContext
(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, setStaticSequenceType
Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Field Details
-
staticContext
-
-
Constructor Details
-
StatementsAndOptionalExpr
-
StatementsAndOptionalExpr
public StatementsAndOptionalExpr(List<Statement> statements, Expression expression, ExceptionMetadata metadata)
-
-
Method Details
-
accept
Description copied from class:Node
Accept method for the visitor pattern. -
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.
-
serializeToJSONiq
- Specified by:
serializeToJSONiq
in classNode
-
getStatements
-
getExpression
-
getStaticContext
Description copied from class:Expression
Retrieves the static context attached to this expression.- Overrides:
getStaticContext
in classExpression
- Returns:
- the static context.
-
setStaticContext
Description copied from class:Expression
Sets the static context of the expression.- Overrides:
setStaticContext
in classExpression
- Parameters:
staticContext
- the static context to set.
-