Class StatementsAndOptionalExpr

java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.scripting.statement.StatementsAndOptionalExpr

public class StatementsAndOptionalExpr extends Expression
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • 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.
    • serializeToJSONiq

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

      public List<Statement> getStatements()
    • getExpression

      public Expression getExpression()
    • getStaticContext

      public StaticContext getStaticContext()
      Description copied from class: Expression
      Retrieves the static context attached to this expression.
      Overrides:
      getStaticContext in class Expression
      Returns:
      the static context.
    • setStaticContext

      public void setStaticContext(StaticContext staticContext)
      Description copied from class: Expression
      Sets the static context of the expression.
      Overrides:
      setStaticContext in class Expression
      Parameters:
      staticContext - the static context to set.