public class IsNullExpression extends BinaryExpression
left, right
Constructor and Description |
---|
IsNullExpression() |
Modifier and Type | Method and Description |
---|---|
boolean |
isNot() |
boolean |
isTrue(Object o,
Query q)
Determine whether the LHS of this expression is or is not null.
|
void |
setNot(boolean v) |
String |
toString()
Return a string representation of this expression.
|
getExpectedReturnType, getLeft, getRight, getValue, hasFixedResult, init, setLeft, setRight
isBracketed, setBracketed
public boolean isNot()
public void setNot(boolean v)
public String toString()
Expression.toString()
IS [ NOT ] NULLtoString
in class Expression
public boolean isTrue(Object o, Query q) throws QueryExecutionException
LHS = null
or:
LHS != null
.isTrue
in class Expression
o
- The current object to perform the expression on.q
- The Query object.true
if the LHS is null (or not null is specified).QueryExecutionException
- If the expression cannot be evaluated.