public class OperationExpression extends Expression
Modifier and Type | Field and Description |
---|---|
protected Expression |
left
The left value expression.
|
protected java.lang.Object |
operator
The operator.
|
static IOperator |
OPERATOR_AND
The AND operator (&&).
|
static IOperator |
OPERATOR_OR
The OR operator (||).
|
protected Expression |
right
The right value expression.
|
Constructor and Description |
---|
OperationExpression(Expression left,
Expression right,
IFunction operator)
Create a new operation.
|
OperationExpression(Expression left,
Expression right,
IOperator operator)
Create a new operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsVariable(Variable var)
Test if a variable is contained in the expression.
|
boolean |
equals(java.lang.Object o)
Test if this operation is equal to some object.
|
static IOperator |
getInverseOperator0(IOperator operator)
Get the inverse operator.
|
Expression |
getLeftValue()
Get the left value.
|
java.lang.Object |
getOperator()
Get the operator.
|
Expression |
getRightValue()
Get the right value.
|
int |
hashCode()
Get the hash code of this operation.
|
java.lang.String |
toString()
Get a string representation of this operation.
|
public static final IOperator OPERATOR_OR
public static final IOperator OPERATOR_AND
protected Expression left
protected Expression right
protected java.lang.Object operator
public OperationExpression(Expression left, Expression right, IOperator operator)
public OperationExpression(Expression left, Expression right, IFunction operator)
public boolean containsVariable(Variable var)
containsVariable
in class Expression
var
- The variable.public Expression getLeftValue()
public Expression getRightValue()
public java.lang.Object getOperator()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object