@Beta public final class ComparatorCondition extends Condition
Underlying grammar:
operand comparator_symbol operand comparator_symbol ::= = | <> | < | <= | > | >=
This object is as immutable (or unmodifiable) as the underlying operands.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
comparator |
private Operand |
lhs |
private Operand |
rhs |
Constructor and Description |
---|
ComparatorCondition(java.lang.String comparator,
Operand lhs,
Operand rhs) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
asSubstituted(SubstitutionContext context)
Returns this unit of expression as a string substituted if necessary with
tokens using the given substitution context.
|
(package private) boolean |
atomic()
A condition is considered "atomic" if appending an additional AND condition
would not alter the evaluation order of the original condition;
false otherwise.
|
(package private) int |
precedence()
Returns the precedence of this condition.
|
private final java.lang.String comparator
private final Operand lhs
private final Operand rhs
java.lang.String asSubstituted(SubstitutionContext context)
UnitOfExpression
asSubstituted
in class UnitOfExpression
context
- the substitution context which may get mutated as a side
effect upon completion of this methodboolean atomic()
Condition
int precedence()
Condition
precedence
in class Condition