Class PredicateNode
- java.lang.Object
-
- com.aquima.interactions.expressions.parser.ParseNodeBase
-
- com.aquima.interactions.expressions.r7.parser.nodes.PredicateNode
-
- All Implemented Interfaces:
IParseNode
public class PredicateNode extends ParseNodeBase
This node holds the information for the EACH and EXISTS predicate nodes.- Since:
- 6.5
- Author:
- F. van der Meer
-
-
Constructor Summary
Constructors Constructor Description PredicateNode(PredicateType type, IParseNode fromNode, String alias, IParseNode whereNode)
Constructs the parse node with the required arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlias()
This method returns the alias for object in the from expression.IParseNode
getFrom()
This method returns the node that should be used to gather the objects from.PredicateType
getType()
This method returns the type of the predicate node.IParseNode
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 Detail
-
PredicateNode
public PredicateNode(PredicateType type, IParseNode fromNode, String alias, IParseNode whereNode)
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 Detail
-
getFrom
public IParseNode 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
public String getAlias()
This method returns the alias for object in the from expression.- Returns:
- the alias for object in the from expression.
-
getWhere
public IParseNode 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
public PredicateType getType()
This method returns the type of the predicate node.- Returns:
- the type of the predicate node.
-
-