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> Taccept(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.voidaddDeclaration(Node declaration) voidaddImportedModule(LibraryModule importedModule) voidReturns all children nodes as a list.static FunctionDeclarationgetFunctionDeclarationFromProlog(Prolog prolog, FunctionIdentifier functionIdentifier) booleanvoidserializeToJSONiq(StringBuffer sb, int indent) voidsetDeclarations(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: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
-
accept
Description copied from class:NodeAccept method for the visitor pattern. -
getFunctionDeclarationFromProlog
public static FunctionDeclaration getFunctionDeclarationFromProlog(Prolog prolog, FunctionIdentifier functionIdentifier)
-