Class IsNullPredicate
- java.lang.Object
-
- com.exasol.sql.expression.predicate.AbstractPredicate
-
- com.exasol.sql.expression.predicate.IsNullPredicate
-
- All Implemented Interfaces:
BooleanExpression,Predicate,ValueExpression
public class IsNullPredicate extends AbstractPredicate
A class that represents aIS [NOT] NULLpredicate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIsNullPredicate.IsNullPredicateOperatorAn operator forIsNullPredicateclass.
-
Constructor Summary
Constructors Constructor Description IsNullPredicate(IsNullPredicate.IsNullPredicateOperator operator, ValueExpression operand)Creates a new instance ofIsNullPredicateforIS [NOT] NULLpredicate.IsNullPredicate(ValueExpression operand)Creates a new instance ofIsNullPredicateforIS NULLpredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PredicateVisitor visitor)AcceptsPredicateVisitor.ValueExpressiongetOperand()Returns the value expression to be checked fornull.-
Methods inherited from class com.exasol.sql.expression.predicate.AbstractPredicate
accept, accept, getOperator
-
-
-
-
Constructor Detail
-
IsNullPredicate
public IsNullPredicate(ValueExpression operand)
Creates a new instance ofIsNullPredicateforIS NULLpredicate.- Parameters:
operand- value expression to check for null
-
IsNullPredicate
public IsNullPredicate(IsNullPredicate.IsNullPredicateOperator operator, ValueExpression operand)
Creates a new instance ofIsNullPredicateforIS [NOT] NULLpredicate.- Parameters:
operator- predicate operatoroperand- value expression to check for null
-
-
Method Detail
-
getOperand
public ValueExpression getOperand()
Returns the value expression to be checked fornull.- Returns:
- value expression operand
-
accept
public void accept(PredicateVisitor visitor)
Description copied from interface:PredicateAcceptsPredicateVisitor.- Parameters:
visitor- predicate visitor to accept
-
-