|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJet.Parser.Grammar
a context-free grammar.
Constructor Summary | |
Grammar(java.io.Reader reader)
constructs a Grammar from the data on reader. |
Method Summary | |
boolean |
defines(java.lang.String s)
returns true if symbol s is defined (a non-terminal) in the grammar |
java.util.Vector |
getProductions(java.lang.String LHS)
returns the definition of symbol LHS in the grammar, or null if LHS is not defined in the grammar. |
java.util.Vector |
getProductionsEndingIn(java.lang.Object element)
returns a Vector of all productions whose last element is element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Grammar(java.io.Reader reader) throws java.io.IOException
Method Detail |
public java.util.Vector getProductions(java.lang.String LHS)
public java.util.Vector getProductionsEndingIn(java.lang.Object element)
public boolean defines(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |