public class And extends java.lang.Object implements Expression
Expression.Operation| Modifier and Type | Method and Description |
|---|---|
boolean |
isEquivalentTo(Expression expr)
Returns whether this expression will accept the same values as another.
|
Expression |
left() |
Expression |
negate()
Returns the negation of this expression, equivalent to not(this).
|
Expression.Operation |
op()
Returns the operation for an expression node.
|
Expression |
right() |
java.lang.String |
toString() |
public Expression left()
public Expression right()
public Expression.Operation op()
Expressionop in interface Expressionpublic boolean isEquivalentTo(Expression expr)
ExpressionIf 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.
isEquivalentTo in interface Expressionexpr - another expressionpublic Expression negate()
Expressionnegate in interface Expressionpublic java.lang.String toString()
toString in class java.lang.Object