Public Member Functions | |
PrintWriter | setupOutput (Tool tool, Grammar grammar) throws IOException |
PrintWriter | setupOutput (Tool tool, String fileName) throws IOException |
void | startMapping (int sourceLine) |
void | startSingleSourceLineMapping (int sourceLine) |
void | endMapping () |
void | finishOutput () throws IOException |
Map | getSourceMaps () |
Defines a strategy that can be used to manage the printwriter being used to write JavaCodeGenerator output
TODO generalize so all code gens could use?
void antlr.JavaCodeGeneratorPrintWriterManager.endMapping | ( | ) |
void antlr.JavaCodeGeneratorPrintWriterManager.finishOutput | ( | ) | throws IOException |
Implemented in antlr.DefaultJavaCodeGeneratorPrintWriterManager.
Referenced by antlr.JavaCodeGenerator.gen(), and antlr.JavaCodeGenerator.genTokenTypes().
Map antlr.JavaCodeGeneratorPrintWriterManager.getSourceMaps | ( | ) |
Implemented in antlr.DefaultJavaCodeGeneratorPrintWriterManager.
PrintWriter antlr.JavaCodeGeneratorPrintWriterManager.setupOutput | ( | Tool | tool, | |
String | fileName | |||
) | throws IOException |
Implemented in antlr.DefaultJavaCodeGeneratorPrintWriterManager.
PrintWriter antlr.JavaCodeGeneratorPrintWriterManager.setupOutput | ( | Tool | tool, | |
Grammar | grammar | |||
) | throws IOException |
Implemented in antlr.DefaultJavaCodeGeneratorPrintWriterManager.
Referenced by antlr.JavaCodeGenerator.gen(), and antlr.JavaCodeGenerator.genTokenTypes().
void antlr.JavaCodeGeneratorPrintWriterManager.startMapping | ( | int | sourceLine | ) |
void antlr.JavaCodeGeneratorPrintWriterManager.startSingleSourceLineMapping | ( | int | sourceLine | ) |
Implemented in antlr.DefaultJavaCodeGeneratorPrintWriterManager.
Referenced by antlr.JavaCodeGenerator.println().