|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--elan.GrammarElement
|
+--elan.expression.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.
| Fields inherited from class elan.GrammarElement |
functionMap, ourMap |
| Constructor Summary | |
Expression()
|
|
| Method Summary | |
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context. |
abstract double |
value(Context c)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Expression()
| Method Detail |
public java.lang.Object evaluate(Context c)
GrammarElementevaluate in class GrammarElementelan.GrammarElementis - the context in which the evaluation takes placepublic abstract double value(Context c)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||