public abstract class UnaryExpression extends ArithmeticInstruction
Modifier and Type | Field and Description |
---|---|
protected ArithmeticBase |
myExpression |
gelementsToValue
Constructor and Description |
---|
UnaryExpression(ArithmeticBase e)
Represents a unary expression
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
double |
value(Context c) |
evaluate
protected ArithmeticBase myExpression
public UnaryExpression(ArithmeticBase e)
e
- the expressionpublic double value(Context c)
value
in class ArithmeticInstruction
c
- is the Context of what value we are obtainingpublic java.lang.String toString()
toString
in class java.lang.Object