public abstract class BinaryOperator extends BinaryExpression
BinaryExpression that is an operator, meaning the string representation is
x symbol y, rather than funcName(x, y).
Requires both inputs to be of the same data type.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
symbol |
left, right| Modifier | Constructor and Description |
|---|---|
protected |
BinaryOperator(Expression left,
Expression right,
java.lang.String symbol) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
children, equals, eval, getLeft, getRight, hashCode, nullSafeEvalclone, finalize, getClass, notify, notifyAll, wait, wait, waitdataType, referencesprotected BinaryOperator(Expression left, Expression right, java.lang.String symbol)
public java.lang.String toString()
toString in interface ExpressiontoString in class java.lang.Object