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?
setupOutput
public java.io.PrintWriter setupOutput(Tool tool,
Grammar grammar)
throws java.io.IOException
- Throws:
java.io.IOException
setupOutput
public java.io.PrintWriter setupOutput(Tool tool,
java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
startMapping
public void startMapping(int sourceLine)
startSingleSourceLineMapping
public void startSingleSourceLineMapping(int sourceLine)
endMapping
public void endMapping()
finishOutput
public void finishOutput()
throws java.io.IOException
- Throws:
java.io.IOException
getSourceMaps
public java.util.Map getSourceMaps()