public class Addition extends BinaryExpression
myLeft, myRight, mySymbol
gelementsToValue
Constructor and Description |
---|
Addition(ArithmeticBase lhs,
ArithmeticBase rhs)
Represents an addition
|
Modifier and Type | Method and Description |
---|---|
double |
value(Context c) |
leftValue, rightValue, toString
evaluate
public Addition(ArithmeticBase lhs, ArithmeticBase rhs)
lhs
- the left-hand side of the addition (before the +)rhs
- the right-hand side of the addition (after the +)public double value(Context c)
value
in class ArithmeticInstruction