antlr

Class DefaultJavaCodeGeneratorPrintWriterManager

Implemented Interfaces:
JavaCodeGeneratorPrintWriterManager

public class DefaultJavaCodeGeneratorPrintWriterManager
extends java.lang.Object
implements JavaCodeGeneratorPrintWriterManager

Method Summary

void
endMapping()
void
finishOutput()
int
getCurrentOutputLine()
Map
getSourceMaps()
PrintWriter
setupOutput(Tool tool, String fileName)
PrintWriter
setupOutput(Tool tool, Grammar grammar)
PrintWriter
setupOutput(Tool tool, Grammar grammar, String fileName)
void
startMapping(int sourceLine)
void
startSingleSourceLineMapping(int sourceLine)

Method Details

endMapping

public void endMapping()
Specified by:
endMapping in interface JavaCodeGeneratorPrintWriterManager

finishOutput

public void finishOutput()
            throws IOException
Specified by:
finishOutput in interface JavaCodeGeneratorPrintWriterManager

getCurrentOutputLine

public int getCurrentOutputLine()

getSourceMaps

public Map getSourceMaps()
Specified by:
getSourceMaps in interface JavaCodeGeneratorPrintWriterManager

setupOutput

public PrintWriter setupOutput(Tool tool,
                               String fileName)
            throws IOException
Specified by:
setupOutput in interface JavaCodeGeneratorPrintWriterManager

setupOutput

public PrintWriter setupOutput(Tool tool,
                               Grammar grammar)
            throws IOException
Specified by:
setupOutput in interface JavaCodeGeneratorPrintWriterManager

setupOutput

public PrintWriter setupOutput(Tool tool,
                               Grammar grammar,
                               String fileName)
            throws IOException

startMapping

public void startMapping(int sourceLine)
Specified by:
startMapping in interface JavaCodeGeneratorPrintWriterManager

startSingleSourceLineMapping

public void startSingleSourceLineMapping(int sourceLine)
Specified by:
startSingleSourceLineMapping in interface JavaCodeGeneratorPrintWriterManager