Class Clause

java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.flowr.Clause
Direct Known Subclasses:
CountClause, ForClause, GroupByClause, LetClause, OrderByClause, ReturnClause, ReturnStatementClause, WhereClause

public abstract class Clause extends Node
This is a clause, which is a component of a FLWOR expression. Clauses, unlike expressions, return tuple streams.
  • Field Details

    • previousClause

      protected Clause previousClause
    • nextClause

      protected Clause nextClause
    • clauseType

      protected FLWOR_CLAUSES clauseType
    • staticContext

      protected StaticContext staticContext
  • Constructor Details

  • Method Details

    • getClauseType

      public FLWOR_CLAUSES getClauseType()
    • getPreviousClause

      public Clause getPreviousClause()
    • getNextClause

      public Clause getNextClause()
    • getFirstClause

      public Clause getFirstClause()
    • getLastClause

      public Clause getLastClause()
    • chainWith

      public void chainWith(Clause otherClause)
    • detachInitialLetClauses

      public ReturnClause detachInitialLetClauses()
    • detachInitialLetClausesForStatements

      public ReturnStatementClause detachInitialLetClausesForStatements()
    • print

      public void print(StringBuffer 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
    • getStaticContext

      public StaticContext getStaticContext()
    • setStaticContext

      public void setStaticContext(StaticContext staticContext)
    • getStaticContextForRuntime

      public RuntimeStaticContext getStaticContextForRuntime(RumbleRuntimeConfiguration conf, VisitorConfig visitorConfig)