|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.jelan.GrammarElement
slogo.jelan.expressions.Expression
public abstract class Expression
The base class of all arithmetic expressions, the evaluate
method uses the hook/template method value
to return a Double
value, the template method returns a double.
Constructor Summary | |
---|---|
Expression()
|
Method Summary | |
---|---|
java.lang.Double |
evaluate(Context c)
Evaluate this language construct in some context. |
abstract double |
value(Context c)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Expression()
Method Detail |
---|
public java.lang.Double evaluate(Context c)
GrammarElement
evaluate
in class GrammarElement
c
- context in which the evaluation takes place
public abstract double value(Context c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |