Package antlr
Interface JavaCodeGeneratorPrintWriterManager
- All Known Implementing Classes:
DefaultJavaCodeGeneratorPrintWriterManager
public interface JavaCodeGeneratorPrintWriterManager
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?
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetupOutput(Tool tool, Grammar grammar) setupOutput(Tool tool, String fileName) voidstartMapping(int sourceLine) voidstartSingleSourceLineMapping(int sourceLine)
-
Method Details
-
setupOutput
- Throws:
IOException
-
setupOutput
- Throws:
IOException
-
startMapping
void startMapping(int sourceLine) -
startSingleSourceLineMapping
void startSingleSourceLineMapping(int sourceLine) -
endMapping
void endMapping() -
finishOutput
- Throws:
IOException
-
getSourceMaps
Map getSourceMaps()
-