antlr.preprocessor
Class Hierarchy
java.lang.Object
|
+--antlr.preprocessor.Hierarchy
- public class Hierarchy
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LexerRoot
protected Grammar LexerRoot
ParserRoot
protected Grammar ParserRoot
TreeParserRoot
protected Grammar TreeParserRoot
symbols
protected java.util.Hashtable symbols
files
protected java.util.Hashtable files
antlrTool
protected Tool antlrTool
Hierarchy
public Hierarchy(Tool tool)
addGrammar
public void addGrammar(Grammar gr)
addGrammarFile
public void addGrammarFile(GrammarFile gf)
expandGrammarsInFile
public void expandGrammarsInFile(java.lang.String fileName)
findRoot
public Grammar findRoot(Grammar g)
getFile
public GrammarFile getFile(java.lang.String fileName)
getGrammar
public Grammar getGrammar(java.lang.String gr)
optionsToString
public static java.lang.String optionsToString(IndexedVector options)
readGrammarFile
public void readGrammarFile(java.lang.String file)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
verifyThatHierarchyIsComplete
public boolean verifyThatHierarchyIsComplete()
- Return true if hierarchy is complete, false if not
getTool
public Tool getTool()
setTool
public void setTool(Tool antlrTool)