public class Hierarchy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Tool |
antlrTool |
protected java.util.Hashtable |
files |
protected antlr.preprocessor.Grammar |
LexerRoot |
protected antlr.preprocessor.Grammar |
ParserRoot |
protected java.util.Hashtable |
symbols |
protected antlr.preprocessor.Grammar |
TreeParserRoot |
| Modifier and Type | Method and Description |
|---|---|
void |
addGrammar(antlr.preprocessor.Grammar gr) |
void |
addGrammarFile(GrammarFile gf) |
void |
expandGrammarsInFile(java.lang.String fileName) |
antlr.preprocessor.Grammar |
findRoot(antlr.preprocessor.Grammar g) |
GrammarFile |
getFile(java.lang.String fileName) |
antlr.preprocessor.Grammar |
getGrammar(java.lang.String gr) |
Tool |
getTool() |
static java.lang.String |
optionsToString(IndexedVector options) |
void |
readGrammarFile(java.lang.String file) |
void |
setTool(Tool antlrTool) |
boolean |
verifyThatHierarchyIsComplete()
Return true if hierarchy is complete, false if not
|
protected antlr.preprocessor.Grammar LexerRoot
protected antlr.preprocessor.Grammar ParserRoot
protected antlr.preprocessor.Grammar TreeParserRoot
protected java.util.Hashtable symbols
protected java.util.Hashtable files
protected Tool antlrTool
public Hierarchy(Tool tool)
public void addGrammar(antlr.preprocessor.Grammar gr)
public void addGrammarFile(GrammarFile gf)
public void expandGrammarsInFile(java.lang.String fileName)
public antlr.preprocessor.Grammar findRoot(antlr.preprocessor.Grammar g)
public GrammarFile getFile(java.lang.String fileName)
public antlr.preprocessor.Grammar getGrammar(java.lang.String gr)
public static java.lang.String optionsToString(IndexedVector options)
public void readGrammarFile(java.lang.String file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic boolean verifyThatHierarchyIsComplete()
public Tool getTool()
public void setTool(Tool antlrTool)