|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjelan.elan.GrammarElement
public abstract class GrammarElement
All elements of the elan language (e.g., that make up an abstract syntax tree) should extend GrammarElement. Evaluating a language construct with a context returns the value of the evaluation and may have side-effects.
Constructor Summary | |
---|---|
GrammarElement()
|
Method Summary | |
---|---|
abstract java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrammarElement()
Method Detail |
---|
public abstract java.lang.Object evaluate(Context c)
c
- context in which the evaluation takes place
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |