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