public interface Expression
extends java.io.Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
Expression.Operation |
Modifier and Type | Method and Description |
---|---|
default boolean |
isEquivalentTo(Expression other)
Returns whether this expression will accept the same values as another.
|
default Expression |
negate()
Returns the negation of this expression, equivalent to not(this).
|
Expression.Operation |
op()
Returns the operation for an expression node.
|
Expression.Operation op()
default Expression negate()
default boolean isEquivalentTo(Expression other)
If this returns true, the expressions are guaranteed to return the same evaluation for the same input. However, if this returns false the expressions may return the same evaluation for the same input. That is, expressions may be equivalent even if this returns false.
For best results, rewrite not and bind expressions before calling this method.
other
- another expression