Package org.rumbledb.expressions.xml
Class DirPIConstructorExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.xml.DirPIConstructorExpression
Expression representing a direct processing instruction constructor.
"A direct processing instruction constructor creates a processing instruction node
whose target property is PITarget and whose content property is DirPIContents. The base-uri property of the node is
empty. The parent property of the node is empty."
"The PITarget of a processing instruction must not consist of the characters "XML" in any combination
of upper and lower case. The DirPIContents of a processing instruction must not contain the string "?>"."
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticContext, staticSequenceTypeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode, isInSequentialBlock -
Constructor Summary
ConstructorsConstructorDescriptionDirPIConstructorExpression(String target, Expression contentExpression, 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.voidserializeToJSONiq(StringBuilder sb, int indent) Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getStaticContextForRuntime, isUnset, isUpdating, isUpdatingNonSequential, print, setIsInSequentialBlock, setSequentialMethods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, indentIt, isContextDependent, numberOfUnsetExecutionModes, toString
-
Constructor Details
-
DirPIConstructorExpression
public DirPIConstructorExpression(String target, Expression contentExpression, 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
-