public class Negation extends UnaryExpression
myExpressiongelementsToValue| 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) | 
evaluatepublic Negation(ArithmeticInstruction e)
e - the expression to negatepublic double value(Context c)
value in class UnaryExpressionpublic java.lang.String toString()
toString in class UnaryExpression