public class Negation extends UnaryExpression
myExpression
gelementsToValue
Constructor and Description |
---|
Negation(ArithmeticInstruction e)
Represents a negation
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Format -expression
|
double |
value(Context c) |
evaluate
public Negation(ArithmeticInstruction e)
e
- the expression to negatepublic double value(Context c)
value
in class UnaryExpression
public java.lang.String toString()
toString
in class UnaryExpression