|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.language.GrammarElement
slogo.instruction.Instruction
slogo.instruction.arithmetic.UnaryExpression
slogo.instruction.arithmetic.Negation
public class Negation
Represents unary minus, e.g., -expression
Field Summary |
---|
Fields inherited from class slogo.instruction.arithmetic.UnaryExpression |
---|
myElement |
Fields inherited from class slogo.language.GrammarElement |
---|
gelementsToValue |
Constructor Summary | |
---|---|
Negation(GrammarElement e)
|
Method Summary | |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context. |
java.lang.String |
toString()
|
Methods inherited from class slogo.instruction.arithmetic.UnaryExpression |
---|
value |
Methods inherited from class slogo.instruction.Instruction |
---|
evaluateNumericExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Negation(GrammarElement e)
Method Detail |
---|
public java.lang.Object evaluate(Context c)
GrammarElement
evaluate
in class Instruction
c
- context in which the evaluation takes place
public java.lang.String toString()
toString
in class UnaryExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |