antlr.preprocessor
public class Hierarchy extends Object
Modifier and Type | Field and Description |
---|---|
protected Tool |
antlrTool |
protected Hashtable |
files |
protected antlr.preprocessor.Grammar |
LexerRoot |
protected antlr.preprocessor.Grammar |
ParserRoot |
protected 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(String fileName) |
antlr.preprocessor.Grammar |
findRoot(antlr.preprocessor.Grammar g) |
GrammarFile |
getFile(String fileName) |
antlr.preprocessor.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 antlr.preprocessor.Grammar LexerRoot
protected antlr.preprocessor.Grammar ParserRoot
protected antlr.preprocessor.Grammar TreeParserRoot
protected Hashtable symbols
protected Hashtable files
protected Tool antlrTool
public Hierarchy(Tool tool)
public void addGrammar(antlr.preprocessor.Grammar gr)
public void addGrammarFile(GrammarFile gf)
public void expandGrammarsInFile(String fileName)
public antlr.preprocessor.Grammar findRoot(antlr.preprocessor.Grammar g)
public GrammarFile getFile(String fileName)
public antlr.preprocessor.Grammar getGrammar(String gr)
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)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.