Public Member Functions | |
| GrammarFile (antlr.Tool tool, String f) | |
| void | addGrammar (Grammar g) |
| void | generateExpandedFile () throws IOException |
| IndexedVector | getGrammars () |
| String | getName () |
| String | nameForExpandedGrammarFile (String f) |
| void | setExpanded (boolean exp) |
| void | addHeaderAction (String a) |
| void | setOptions (IndexedVector o) |
| String | toString () |
Protected Attributes | |
| String | fileName |
| String | headerAction = "" |
| IndexedVector | options |
| IndexedVector | grammars |
| boolean | expanded = false |
| antlr.Tool | tool |
Stores header action, grammar preamble, file options, and list of grammars in the file
| antlr.preprocessor.GrammarFile.GrammarFile | ( | antlr.Tool | tool, | |
| String | f | |||
| ) |
| void antlr.preprocessor.GrammarFile.addGrammar | ( | Grammar | g | ) |
| void antlr.preprocessor.GrammarFile.addHeaderAction | ( | String | a | ) |
References antlr.preprocessor.GrammarFile.headerAction.
| void antlr.preprocessor.GrammarFile.generateExpandedFile | ( | ) | throws IOException |
| IndexedVector antlr.preprocessor.GrammarFile.getGrammars | ( | ) |
References antlr.preprocessor.GrammarFile.grammars.
Referenced by antlr.preprocessor.Hierarchy.expandGrammarsInFile().
| String antlr.preprocessor.GrammarFile.getName | ( | ) |
| String antlr.preprocessor.GrammarFile.nameForExpandedGrammarFile | ( | String | f | ) |
| void antlr.preprocessor.GrammarFile.setExpanded | ( | boolean | exp | ) |
References antlr.preprocessor.GrammarFile.expanded.
Referenced by antlr.preprocessor.Grammar.expandInPlace().
| void antlr.preprocessor.GrammarFile.setOptions | ( | IndexedVector | o | ) |
References antlr.preprocessor.GrammarFile.options.
| String antlr.preprocessor.GrammarFile.toString | ( | ) |
boolean antlr.preprocessor.GrammarFile.expanded = false [protected] |
String antlr.preprocessor.GrammarFile.fileName [protected] |
Referenced by antlr.preprocessor.GrammarFile.getName(), and antlr.preprocessor.GrammarFile.GrammarFile().
IndexedVector antlr.preprocessor.GrammarFile.grammars [protected] |
String antlr.preprocessor.GrammarFile.headerAction = "" [protected] |
IndexedVector antlr.preprocessor.GrammarFile.options [protected] |
Referenced by antlr.preprocessor.GrammarFile.setOptions(), and antlr.preprocessor.GrammarFile.toString().
antlr.Tool antlr.preprocessor.GrammarFile.tool [protected] |
1.7.0