Class PredicateNode
java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.PredicateNode
- All Implemented Interfaces:
IParseNode
This node holds the information for the EACH and EXISTS predicate nodes.
- Since:
- 6.5
- Author:
- F. van der Meer
-
Constructor Summary
ConstructorsConstructorDescriptionPredicateNode
(PredicateType type, 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.getFrom()
This method returns the node that should be used to gather the objects from.getType()
This method returns the type of the predicate node.getWhere()
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
-
PredicateNode
Constructs the parse node with the required arguments.- Parameters:
type
- The type of the predicate (EXISTS or EACH).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
-
getFrom
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.
-
getWhere
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.
-
getType
This method returns the type of the predicate node.- Returns:
- the type of the predicate node.
-