|
||||||||||
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.Subroutine
public class Subroutine
Represents a subroutine object that has a name and a list of instructions.
Field Summary | |
---|---|
(package private) java.lang.String |
myName
|
(package private) StrictInstructionList |
mySIL
|
Fields inherited from class slogo.language.GrammarElement |
---|
gelementsToValue |
Constructor Summary | |
---|---|
Subroutine(java.lang.String name,
StrictInstructionList sil)
|
Method Summary | |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context. |
Methods inherited from class slogo.instruction.Instruction |
---|
evaluateNumericExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String myName
StrictInstructionList mySIL
Constructor Detail |
---|
public Subroutine(java.lang.String name, StrictInstructionList sil)
Method Detail |
---|
public java.lang.Object evaluate(Context c)
GrammarElement
evaluate
in class Instruction
c
- context in which the evaluation takes place
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |