|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.language.GrammarElement
slogo.instruction.Instruction
public abstract class Instruction
Represents an instruction in the SLogo language
Field Summary |
---|
Fields inherited from class slogo.language.GrammarElement |
---|
gelementsToValue |
Constructor Summary | |
---|---|
Instruction()
|
Method Summary | |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context. |
static int |
evaluateNumericExpression(GrammarElement elem,
Context c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instruction()
Method Detail |
---|
public java.lang.Object evaluate(Context c)
GrammarElement
evaluate
in class GrammarElement
c
- context in which the evaluation takes place
public static int evaluateNumericExpression(GrammarElement elem, Context c)
elem
- c
- Context of the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |