Package org.rumbledb.expressions.primary
Class ArrayConstructorExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.primary.ArrayConstructorExpression
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticContext, staticSequenceTypeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode -
Constructor Summary
ConstructorsConstructorDescriptionArrayConstructorExpression(List<Expression> memberExpressions, boolean isFixedSlotsArrayConstructor, ExceptionMetadata metadata) Square array constructor:[ E1, E2, ... ].ArrayConstructorExpression(ExceptionMetadata metadata) Empty array constructor (curly or square with no members).ArrayConstructorExpression(Expression expression, ExceptionMetadata metadata) Curly array constructor:array { expr }. -
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.booleanvoidserializeToJSONiq(StringBuffer sb, int indent) Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getExpressionClassification, getStaticContext, getStaticContextForRuntime, getStaticSequenceType, isSequential, isUnset, isUpdating, isUpdatingNonSequential, print, setExpressionClassification, setSequential, setStaticContext, setStaticSequenceTypeMethods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Constructor Details
-
ArrayConstructorExpression
Curly array constructor:array { expr }. Each item produced by the expression becomes a singleton member. -
ArrayConstructorExpression
Empty array constructor (curly or square with no members). -
ArrayConstructorExpression
public ArrayConstructorExpression(List<Expression> memberExpressions, boolean isFixedSlotsArrayConstructor, ExceptionMetadata metadata) Square array constructor:[ E1, E2, ... ]. Each expression becomes a separate member whose result (possibly a sequence) is preserved.
-
-
Method Details
-
getExpression
-
getMemberExpressions
-
isFixedSlotsArrayConstructor
public boolean isFixedSlotsArrayConstructor() -
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
-
accept
Description copied from class:NodeAccept method for the visitor pattern.
-