Package org.rumbledb.expressions.module
Class Prolog
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.module.Prolog
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionProlog
(List<VariableDeclaration> variableDeclarations, List<FunctionDeclaration> functionDeclarations, List<TypeDeclaration> typeDeclarations, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.void
addDeclaration
(Node declaration) void
addImportedModule
(LibraryModule importedModule) void
Returns all children nodes as a list.static FunctionDeclaration
getFunctionDeclarationFromProlog
(Prolog prolog, FunctionIdentifier functionIdentifier) boolean
void
serializeToJSONiq
(StringBuffer sb, int indent) void
setDeclarations
(List<Node> declarations) Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, print, setHighestExecutionMode, toString
-
Constructor Details
-
Prolog
public Prolog(List<VariableDeclaration> variableDeclarations, List<FunctionDeclaration> functionDeclarations, List<TypeDeclaration> typeDeclarations, ExceptionMetadata metadata)
-
-
Method Details
-
addImportedModule
-
getImportedModules
-
getFunctionDeclarations
-
getVariableDeclarations
-
getTypeDeclarations
-
hasContextItemDeclaration
public boolean hasContextItemDeclaration() -
setDeclarations
-
addDeclaration
-
clearDeclarations
public void clearDeclarations() -
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
-
accept
Description copied from class:Node
Accept method for the visitor pattern. -
getFunctionDeclarationFromProlog
public static FunctionDeclaration getFunctionDeclarationFromProlog(Prolog prolog, FunctionIdentifier functionIdentifier)
-