public abstract class ComparisonExpression extends Object implements Expression
Specifies two input ValueExpressions that are to be evaluated and
their results compared. Handles evaluation of inputs and resulting lists.
The abstract compare(Value, Value) method is then called for
individual values.
The value argument may be null, in which case it is
not evaluated and the output value is substituted with a list containing
only the Value most recently added to the ParseState.
| Modifier and Type | Field and Description |
|---|---|
ValueExpression |
predicate |
ValueExpression |
value |
| Constructor and Description |
|---|
ComparisonExpression(ValueExpression value,
ValueExpression predicate) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
compare(Value left,
Value right) |
boolean |
equals(Object obj) |
boolean |
eval(ParseState parseState,
Encoding encoding) |
int |
hashCode() |
String |
toString() |
public final ValueExpression value
public final ValueExpression predicate
public ComparisonExpression(ValueExpression value, ValueExpression predicate)
public boolean eval(ParseState parseState, Encoding encoding)
eval in interface ExpressionCopyright © 2017. All rights reserved.