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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endMapping()
void
finishOutput()
java.util.Map
getSourceMaps()
java.io.PrintWriter
setupOutput(Tool tool, Grammar grammar)
java.io.PrintWriter
setupOutput(Tool tool, java.lang.String fileName)
void
startMapping(int sourceLine)
void
startSingleSourceLineMapping(int sourceLine)
-
-
-
Method Detail
-
setupOutput
java.io.PrintWriter setupOutput(Tool tool, Grammar grammar) throws java.io.IOException
- Throws:
java.io.IOException
-
setupOutput
java.io.PrintWriter setupOutput(Tool tool, java.lang.String fileName) throws java.io.IOException
- Throws:
java.io.IOException
-
startMapping
void startMapping(int sourceLine)
-
startSingleSourceLineMapping
void startSingleSourceLineMapping(int sourceLine)
-
endMapping
void endMapping()
-
finishOutput
void finishOutput() throws java.io.IOException
- Throws:
java.io.IOException
-
getSourceMaps
java.util.Map getSourceMaps()
-
-