public abstract class UnaryExpression extends ArithmeticInstruction
Modifier and Type | Field and Description |
---|---|
protected ArithmeticBase |
myExpression |
gelementsToValue
Constructor and Description |
---|
UnaryExpression(ArithmeticBase num)
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 num)
num
- the expressionpublic double value(Context c)
value
in class ArithmeticInstruction
public java.lang.String toString()
toString
in class java.lang.Object