Class CollectNode
java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.CollectNode
- All Implemented Interfaces:
IParseNode
Parse node representing a collect statement.
- Since:
- 6.4
- Author:
- F. van der Meer, O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionCollectNode
(IParseNode outNode, IParseNode fromNode, String alias, IParseNode whereNode) Constructs the parse node with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
This method returns the alias for object in the from expression.This method returns the node that should be used to gather the objects from.Returns the output expression for the selection on the.This method returns the condition that should be applied to object in the from expression.Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
Constructor Details
-
CollectNode
Constructs the parse node with the required arguments.- Parameters:
outNode
- Node identifying the output of the expression.fromNode
- Node used to gather the objectsalias
- 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
Returns the output expression for the selection on the.- Returns:
- The out expression.
-
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
This method returns the alias for object in the from expression.- Returns:
- the alias for object in the from expression.
-
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.
-