public abstract class BinaryOperation extends Operation
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
operand1 |
protected Expression |
operand2 |
| Constructor and Description |
|---|
BinaryOperation(java.lang.String name,
Expression operand1,
Expression operand2) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
binaryEvaluation(java.lang.Object operand1,
java.lang.Object operand2) |
java.lang.Object |
evaluate() |
protected abstract java.util.List<java.lang.Object> |
evaluateOperands() |
Expression[] |
getChildren() |
int |
getOperandCount() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getPriorityprotected final Expression operand1
protected final Expression operand2
public BinaryOperation(java.lang.String name,
Expression operand1,
Expression operand2)
protected abstract java.util.List<java.lang.Object> evaluateOperands()
protected abstract java.lang.Object binaryEvaluation(java.lang.Object operand1,
java.lang.Object operand2)
public final java.lang.Object evaluate()
public final int getOperandCount()
getOperandCount in class Operationpublic final Expression[] getChildren()