Class Program
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.scripting.Program
A program is the first-class citizen in JSONiq scripting syntax. A program
corresponds to the body of a block expression.
The final expression may be omitted. In this case, the final expression is
considered the empty expression.
The result of a program is the result of executing, if present, an
expression.
A program forms a tree of statements and possibly an expression.
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionProgram
(StatementsAndOptionalExpr statementsAndOptionalExpr, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.Returns all children nodes as a list.void
serializeToJSONiq
(StringBuffer sb, int indent) Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, print, setHighestExecutionMode, toString
-
Constructor Details
-
Program
-
-
Method Details
-
accept
Description copied from class:Node
Accept method for the visitor pattern. -
getChildren
Description copied from class:Node
Returns all children nodes as a list. The list is new and can be modified at will by the caller.- Specified by:
getChildren
in classNode
- Returns:
- the children nodes as a list.
-
serializeToJSONiq
- Specified by:
serializeToJSONiq
in classNode
-
getStatementsAndOptionalExpr
-