Class ASTExists

All Implemented Interfaces:
Serializable, Node, XMLSerializable

public class ASTExists extends ConditionNode
Since:
4.2
See Also:
  • Constructor Details

    • ASTExists

      public ASTExists(Expression expression)
  • Method Details

    • getRequiredChildrenCount

      protected int getRequiredChildrenCount()
      Specified by:
      getRequiredChildrenCount in class ConditionNode
    • evaluateSubNode

      protected Boolean evaluateSubNode(Object o, Object[] evaluatedChildren) throws Exception
      Specified by:
      evaluateSubNode in class ConditionNode
      Throws:
      Exception
    • getExpressionOperator

      protected String getExpressionOperator(int index)
      Specified by:
      getExpressionOperator in class SimpleNode
    • isValidParent

      protected boolean isValidParent(Node n)
      Description copied from class: SimpleNode
      Additional parent check that we can't handle properly in the grammar By default it just returns true.
      Overrides:
      isValidParent in class ConditionNode
      Parameters:
      n - potential parent node to check
      Returns:
      true if node could be set as a parent for the current node
    • jjtSetParent

      public void jjtSetParent(Node n)
      Description copied from interface: Node
      This pair of methods are used to inform the node of its parent.
      Specified by:
      jjtSetParent in interface Node
      Overrides:
      jjtSetParent in class SimpleNode
    • jjtAddChild

      public void jjtAddChild(Node n, int i)
      Description copied from interface: Node
      This method tells the node to add its argument to the node's list of children.
      Specified by:
      jjtAddChild in interface Node
      Overrides:
      jjtAddChild in class SimpleNode
    • shallowCopy

      public Expression shallowCopy()
      Description copied from class: Expression
      Creates a copy of this expression node, without copying children.
      Specified by:
      shallowCopy in class Expression
    • getType

      public int getType()
      Description copied from class: Expression
      Returns a type of expression. Most common types are defined as public static fields of this interface.
      Overrides:
      getType in class Expression
    • exists

      public Expression exists()
      Description copied from class: ConditionNode
      Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).
      Overrides:
      exists in class ConditionNode
      Returns:
      exists expression
      See Also:
    • notExists

      public Expression notExists()
      Description copied from class: ConditionNode
      Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).
      Overrides:
      notExists in class ConditionNode
      Returns:
      not exists expression
      See Also: