Package org.rumbledb.expressions.xml
Class ComputedNamespaceConstructorExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.xml.ComputedNamespaceConstructorExpression
Expression representing a computed namespace constructor.
-
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
ConstructorsConstructorDescriptionComputedNamespaceConstructorExpression(String prefix, Expression uriExpression, ExceptionMetadata metadata) Constructor for static prefix: namespace prefix { uri }ComputedNamespaceConstructorExpression(Expression prefixExpression, Expression uriExpression, ExceptionMetadata metadata) Constructor for dynamic prefix: namespace { prefixExpression } { uri } -
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(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
-
ComputedNamespaceConstructorExpression
public ComputedNamespaceConstructorExpression(String prefix, Expression uriExpression, ExceptionMetadata metadata) Constructor for static prefix: namespace prefix { uri }- Parameters:
prefix- The static namespace prefixuriExpression- The URI expressionmetadata- The exception metadata
-
ComputedNamespaceConstructorExpression
public ComputedNamespaceConstructorExpression(Expression prefixExpression, Expression uriExpression, ExceptionMetadata metadata) Constructor for dynamic prefix: namespace { prefixExpression } { uri }- Parameters:
prefixExpression- The dynamic prefix expressionuriExpression- The URI expressionmetadata- The exception metadata
-
-
Method Details
-
hasStaticPrefix
public boolean hasStaticPrefix() -
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
-