Class 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 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 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 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.