Package antlr
Interface JavaCodeGeneratorPrintWriterManager
-
- All Known Implementing Classes:
DefaultJavaCodeGeneratorPrintWriterManager
public interface JavaCodeGeneratorPrintWriterManagerDefines 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendMapping()voidfinishOutput()MapgetSourceMaps()PrintWritersetupOutput(Tool tool, Grammar grammar)PrintWritersetupOutput(Tool tool, String fileName)voidstartMapping(int sourceLine)voidstartSingleSourceLineMapping(int sourceLine)
-
-
-
Method Detail
-
setupOutput
PrintWriter setupOutput(Tool tool, Grammar grammar) throws IOException
- Throws:
IOException
-
setupOutput
PrintWriter setupOutput(Tool tool, String fileName) throws IOException
- Throws:
IOException
-
startMapping
void startMapping(int sourceLine)
-
startSingleSourceLineMapping
void startSingleSourceLineMapping(int sourceLine)
-
endMapping
void endMapping()
-
finishOutput
void finishOutput() throws IOException- Throws:
IOException
-
getSourceMaps
Map getSourceMaps()
-
-