@Beta public abstract class Condition extends UnitOfExpression
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
AndCondition |
and(Condition that)
Returns a new condition based on the conjunction of the current condition
and the given condition.
|
(package private) abstract 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.
|
NegationCondition |
negate()
Returns a new condition based on the negation of the current condition.
|
OrCondition |
or(Condition that)
Returns a new condition based on the disjunction of the current condition
and the given condition.
|
(package private) abstract int |
precedence()
Returns the precedence of this condition.
|
asSubstituted
public final NegationCondition negate()
public AndCondition and(Condition that)
that
- given condition.public OrCondition or(Condition that)
that
- given condition.abstract boolean atomic()
abstract int precedence()