public class Comparison extends ConditionalExpression
Modifier and Type | Field and Description |
---|---|
static int |
CLIKE
A comparison involving CLIKE
|
static int |
EQ
A comparison involving = or ==
|
static int |
GT
A comparison involving >
|
static int |
GTEQ
A comparison involving >
|
static int |
IS_NOT_NULL
A comparison involving IS NOT NULL
|
static int |
IS_NULL
A comparison involving IS NULL
|
static int |
LIKE
A comparison involving LIKE
|
static int |
LT
A comparison involving <
|
static int |
LTEQ
A comparison involving <=
|
static int |
NOTEQ
A comparison involving != or <>
|
Constructor and Description |
---|
Comparison(int type,
CompareTerm left,
CompareTerm right)
Constructs a Comparison object that represents a comparison involving
the specified operator and operands.
|
Modifier and Type | Method and Description |
---|---|
CompareTerm |
getLeftTerm()
Returns the left operand of the comparison represented by the called
object.
|
CompareTerm |
getRightTerm()
Returns the right operand of the comparison represented by the called
object.
|
int |
getType()
Returns the type of the comparison represented by the called
object.
|
boolean |
isTrue()
Evaluates the comparison represented by the called object, based on
the current values of the operands
|
getLeft, getRight
public static final int EQ
public static final int NOTEQ
public static final int LT
public static final int GT
public static final int LTEQ
public static final int GTEQ
public static final int LIKE
public static final int CLIKE
public static final int IS_NULL
public static final int IS_NOT_NULL
public Comparison(int type, CompareTerm left, CompareTerm right)
type
- the type of comparison (i.e., the operator)left
- the left operandright
- the right operand (possibly null)public CompareTerm getLeftTerm()
public CompareTerm getRightTerm()
public int getType()
public boolean isTrue()
isTrue
in class ConditionalExpression