Package org.rumbledb.expressions.typing
Class InstanceOfExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.typing.InstanceOfExpression
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticContext, staticSequenceTypeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode -
Constructor Summary
ConstructorsConstructorDescriptionInstanceOfExpression(Expression mainExpression, SequenceType sequenceType, 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.voidprint(StringBuffer buffer, int indent) Prints the node tree to a string buffer.voidserializeToJSONiq(StringBuffer sb, int indent) Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getExpressionClassification, getStaticContext, getStaticContextForRuntime, getStaticSequenceType, isSequential, isUnset, isUpdating, isUpdatingNonSequential, setExpressionClassification, setSequential, setStaticContext, setStaticSequenceTypeMethods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Constructor Details
-
InstanceOfExpression
public InstanceOfExpression(Expression mainExpression, SequenceType sequenceType, ExceptionMetadata metadata)
-
-
Method Details
-
accept
Description copied from class:NodeAccept method for the visitor pattern. -
getSequenceType
-
getMainExpression
-
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.
-
print
Description copied from class:NodePrints the node tree to a string buffer.- Overrides:
printin classExpression- Parameters:
buffer- a string buffer to write toindent- the current level of indentation
-
serializeToJSONiq
- Specified by:
serializeToJSONiqin classNode
-