Class VariableDeclaration

java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.module.VariableDeclaration

public class VariableDeclaration extends Node
  • Field Details

    • sequenceType

      protected final SequenceType sequenceType
    • expression

      protected final Expression expression
    • variableHighestStorageMode

      protected ExecutionMode variableHighestStorageMode
  • Constructor Details

  • Method Details

    • external

      public boolean external()
    • getSequenceType

      public SequenceType getSequenceType()
    • getActualSequenceType

      public SequenceType getActualSequenceType()
    • getChildren

      public List<Node> 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 class Node
      Returns:
      the children nodes as a list.
    • accept

      public <T> T accept(AbstractNodeVisitor<T> visitor, T argument)
      Description copied from class: Node
      Accept method for the visitor pattern.
      Specified by:
      accept in class Node
      Type Parameters:
      T - the type of the objects returned by the visitor.
      Parameters:
      visitor - the visitor.
      argument - the input from the visitor.
      Returns:
      the object returned by this visitor
    • getVariableHighestStorageMode

      public ExecutionMode getVariableHighestStorageMode(VisitorConfig visitorConfig)
    • print

      public void print(StringBuilder buffer, int indent)
      Description copied from class: Node
      Prints the node tree to a string buffer.
      Overrides:
      print in class Node
      Parameters:
      buffer - a string buffer to write to
      indent - the current level of indentation
    • serializeToJSONiq

      public void serializeToJSONiq(StringBuilder sb, int indent)
      Specified by:
      serializeToJSONiq in class Node
    • getAnnotations

      @Nullable public List<Annotation> getAnnotations()