|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.language.GrammarElement
slogo.expression.Expression
slogo.expression.Subroutine
public class Subroutine
Field Summary | |
---|---|
protected java.lang.String |
myName
|
protected StrictInstructionList |
mySIL
|
Fields inherited from class slogo.language.GrammarElement |
---|
gelementsToValue |
Constructor Summary | |
---|---|
Subroutine(IdentifierToken id,
StrictInstructionList sil)
|
|
Subroutine(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.Double |
evaluate(Context c)
Evaluate this language construct in some context. |
double |
value(Context c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String myName
protected StrictInstructionList mySIL
Constructor Detail |
---|
public Subroutine(java.lang.String name)
public Subroutine(IdentifierToken id, StrictInstructionList sil)
Method Detail |
---|
public java.lang.Double evaluate(Context c)
GrammarElement
evaluate
in class Expression
c
- context in which the evaluation takes place
public double value(Context c)
value
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |