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