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] NULL
predicate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IsNullPredicate.IsNullPredicateOperator
An operator forIsNullPredicate
class.
-
Constructor Summary
Constructors Constructor Description IsNullPredicate(IsNullPredicate.IsNullPredicateOperator operator, ValueExpression operand)
Creates a new instance ofIsNullPredicate
forIS [NOT] NULL
predicate.IsNullPredicate(ValueExpression operand)
Creates a new instance ofIsNullPredicate
forIS NULL
predicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PredicateVisitor visitor)
AcceptsPredicateVisitor
.ValueExpression
getOperand()
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 ofIsNullPredicate
forIS NULL
predicate.- Parameters:
operand
- value expression to check for null
-
IsNullPredicate
public IsNullPredicate(IsNullPredicate.IsNullPredicateOperator operator, ValueExpression operand)
Creates a new instance ofIsNullPredicate
forIS [NOT] NULL
predicate.- 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:Predicate
AcceptsPredicateVisitor
.- Parameters:
visitor
- predicate visitor to accept
-
-