public class DefaultJavaCodeGeneratorPrintWriterManager extends Object implements JavaCodeGeneratorPrintWriterManager
Constructor and Description |
---|
DefaultJavaCodeGeneratorPrintWriterManager() |
Modifier and Type | Method and Description |
---|---|
void |
endMapping() |
void |
finishOutput() |
int |
getCurrentOutputLine() |
Map |
getSourceMaps() |
PrintWriter |
setupOutput(Tool tool,
Grammar grammar) |
PrintWriter |
setupOutput(Tool tool,
Grammar grammar,
String fileName) |
PrintWriter |
setupOutput(Tool tool,
String fileName) |
void |
startMapping(int sourceLine) |
void |
startSingleSourceLineMapping(int sourceLine) |
public DefaultJavaCodeGeneratorPrintWriterManager()
public PrintWriter setupOutput(Tool tool, Grammar grammar) throws IOException
setupOutput
in interface JavaCodeGeneratorPrintWriterManager
IOException
public PrintWriter setupOutput(Tool tool, String fileName) throws IOException
setupOutput
in interface JavaCodeGeneratorPrintWriterManager
IOException
public PrintWriter setupOutput(Tool tool, Grammar grammar, String fileName) throws IOException
IOException
public void startMapping(int sourceLine)
startMapping
in interface JavaCodeGeneratorPrintWriterManager
public void startSingleSourceLineMapping(int sourceLine)
startSingleSourceLineMapping
in interface JavaCodeGeneratorPrintWriterManager
public void endMapping()
endMapping
in interface JavaCodeGeneratorPrintWriterManager
public void finishOutput() throws IOException
finishOutput
in interface JavaCodeGeneratorPrintWriterManager
IOException
public Map getSourceMaps()
getSourceMaps
in interface JavaCodeGeneratorPrintWriterManager
public int getCurrentOutputLine()