Class IsNullPredicate

All Implemented Interfaces:
QueryObject

public final class IsNullPredicate extends Predicate
Predicate that checks expressions for being null or not null.
Version:
$Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Ahmad Hassan, Ralf Joachim
  • Constructor Details

    • IsNullPredicate

      public IsNullPredicate(Expression expression)
      Construct a predicate that checks the given expression for being null.
      Parameters:
      expression - Expression to check for null.
    • IsNullPredicate

      public IsNullPredicate(Expression expression, boolean evaluateTo)
      Construct a predicate that checks the given expression for being null.
      Parameters:
      expression - Expression to check for null.
      evaluateTo - What is the expected result of the evaluation?
  • Method Details

    • accept

      public void accept(Visitor visitor)
      Accept method to handle incoming visitors.
      Parameters:
      visitor - Visitor to be handled.
    • toString

      public String toString()
      Method constructing query string.
      Overrides:
      toString in class Object
      Returns:
      Constructed query string.