Public Member Functions | |
Hierarchy (antlr.Tool tool) | |
void | addGrammar (Grammar gr) |
void | addGrammarFile (GrammarFile gf) |
void | expandGrammarsInFile (String fileName) |
Grammar | findRoot (Grammar g) |
GrammarFile | getFile (String fileName) |
Grammar | getGrammar (String gr) |
void | readGrammarFile (String file) throws FileNotFoundException |
boolean | verifyThatHierarchyIsComplete () |
antlr.Tool | getTool () |
void | setTool (antlr.Tool antlrTool) |
Static Public Member Functions | |
static String | optionsToString (IndexedVector options) |
Protected Attributes | |
Grammar | LexerRoot = null |
Grammar | ParserRoot = null |
Grammar | TreeParserRoot = null |
Hashtable | symbols |
Hashtable | files |
antlr.Tool | antlrTool |
antlr.preprocessor.Hierarchy.Hierarchy | ( | antlr.Tool | tool | ) |
References antlr.preprocessor.Hierarchy.antlrTool, antlr.preprocessor.Hierarchy.files, antlr.preprocessor.Grammar.getName(), antlr.preprocessor.Hierarchy.LexerRoot, antlr.preprocessor.Hierarchy.ParserRoot, antlr.preprocessor.Grammar.setPredefined(), antlr.preprocessor.Hierarchy.symbols, and antlr.preprocessor.Hierarchy.TreeParserRoot.
void antlr.preprocessor.Hierarchy.addGrammar | ( | Grammar | gr | ) |
void antlr.preprocessor.Hierarchy.addGrammarFile | ( | GrammarFile | gf | ) |
References antlr.preprocessor.Hierarchy.files, and antlr.preprocessor.GrammarFile.getName().
Referenced by antlr.preprocessor.Hierarchy.readGrammarFile().
void antlr.preprocessor.Hierarchy.expandGrammarsInFile | ( | String | fileName | ) |
GrammarFile antlr.preprocessor.Hierarchy.getFile | ( | String | fileName | ) |
Grammar antlr.preprocessor.Hierarchy.getGrammar | ( | String | gr | ) |
References antlr.preprocessor.Hierarchy.symbols.
Referenced by antlr.preprocessor.Grammar.getSuperGrammar().
antlr.Tool antlr.preprocessor.Hierarchy.getTool | ( | ) |
References antlr.preprocessor.Hierarchy.antlrTool.
static String antlr.preprocessor.Hierarchy.optionsToString | ( | IndexedVector | options | ) | [static] |
References antlr.collections.impl.IndexedVector.elements.
void antlr.preprocessor.Hierarchy.readGrammarFile | ( | String | file | ) | throws FileNotFoundException |
References antlr.preprocessor.Hierarchy.addGrammarFile(), antlr.preprocessor.Hierarchy.antlrTool, antlr.preprocessor.Preprocessor.grammarFile(), antlr.Parser.setFilename(), antlr.CharScanner.setFilename(), and antlr.preprocessor.Preprocessor.setTool().
Referenced by antlr.preprocessor.Tool.preprocess().
void antlr.preprocessor.Hierarchy.setTool | ( | antlr.Tool | antlrTool | ) |
References antlr.preprocessor.Hierarchy.antlrTool.
boolean antlr.preprocessor.Hierarchy.verifyThatHierarchyIsComplete | ( | ) |
Return true if hierarchy is complete, false if not
References antlr.preprocessor.Hierarchy.antlrTool, antlr.preprocessor.Hierarchy.findRoot(), antlr.preprocessor.Grammar.getName(), antlr.preprocessor.Grammar.getSuperGrammar(), antlr.preprocessor.Grammar.getSuperGrammarName(), antlr.preprocessor.Grammar.setType(), and antlr.preprocessor.Hierarchy.symbols.
Referenced by antlr.preprocessor.Tool.preprocess().
antlr.Tool antlr.preprocessor.Hierarchy.antlrTool [protected] |
Hashtable antlr.preprocessor.Hierarchy.files [protected] |
Grammar antlr.preprocessor.Hierarchy.LexerRoot = null [protected] |
Referenced by antlr.preprocessor.Hierarchy.Hierarchy().
Grammar antlr.preprocessor.Hierarchy.ParserRoot = null [protected] |
Referenced by antlr.preprocessor.Hierarchy.Hierarchy().
Hashtable antlr.preprocessor.Hierarchy.symbols [protected] |
Grammar antlr.preprocessor.Hierarchy.TreeParserRoot = null [protected] |
Referenced by antlr.preprocessor.Hierarchy.Hierarchy().