java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.CollectNode
All Implemented Interfaces:
IParseNode

public class CollectNode extends ParseNodeBase
Parse node representing a collect statement.
Since:
6.4
Author:
F. van der Meer, O. Kerpershoek
  • Constructor Details

    • CollectNode

      public CollectNode(IParseNode outNode, IParseNode fromNode, String alias, IParseNode whereNode)
      Constructs the parse node with the required arguments.
      Parameters:
      outNode - Node identifying the output of the expression.
      fromNode - Node used to gather the objects
      alias - Alias that should be used for each object in the from expression (optional).
      whereNode - Expression that should be used to filter objects in the from expression (optional).
  • Method Details

    • getOutExpression

      public IParseNode getOutExpression()
      Returns the output expression for the selection on the.
      Returns:
      The out expression.
    • getFromExpression

      public IParseNode getFromExpression()
      This method returns the node that should be used to gather the objects from.
      Returns:
      the node that should be used to gather the objects from.
    • getAlias

      public String getAlias()
      This method returns the alias for object in the from expression.
      Returns:
      the alias for object in the from expression.
    • getWhereExpression

      public IParseNode getWhereExpression()
      This method returns the condition that should be applied to object in the from expression.
      Returns:
      the condition that should be applied to object in the from expression.