Package org.rumbledb.expressions.xml
Class TextNodeExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.xml.TextNodeExpression
An expression representing a text node, as part of a direct element constructor content.
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticContext, staticSequenceTypeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode -
Constructor Summary
ConstructorsConstructorDescriptionTextNodeExpression(String content, ExceptionMetadata metadata) Constructor for a text node. -
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.Get the content of the text nodevoidserializeToJSONiq(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
-
TextNodeExpression
Constructor for a text node.- Parameters:
content- The content of the text nodemetadata- The exception metadata
-
-
Method Details
-
getContent
Get the content of the text node- Returns:
- The content of the text node
-
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. -
serializeToJSONiq
- Specified by:
serializeToJSONiqin classNode
-