public abstract class ArithmeticInstruction extends Instruction
gelementsToValue
Constructor and Description |
---|
ArithmeticInstruction() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(Context c)
uses the hook/template method value to return a Double
|
abstract double |
value(Context c) |
public java.lang.Double evaluate(Context c)
evaluate
in class Instruction
c
- the context of the expression--may affect the valuepublic abstract double value(Context c)