Package antlr
Class DefaultJavaCodeGeneratorPrintWriterManager
- java.lang.Object
-
- antlr.DefaultJavaCodeGeneratorPrintWriterManager
-
- All Implemented Interfaces:
JavaCodeGeneratorPrintWriterManager
public class DefaultJavaCodeGeneratorPrintWriterManager extends Object implements JavaCodeGeneratorPrintWriterManager
-
-
Constructor Summary
Constructors Constructor Description DefaultJavaCodeGeneratorPrintWriterManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
setupOutput
public PrintWriter setupOutput(Tool tool, Grammar grammar) throws IOException
- Specified by:
setupOutput
in interfaceJavaCodeGeneratorPrintWriterManager
- Throws:
IOException
-
setupOutput
public PrintWriter setupOutput(Tool tool, String fileName) throws IOException
- Specified by:
setupOutput
in interfaceJavaCodeGeneratorPrintWriterManager
- Throws:
IOException
-
setupOutput
public PrintWriter setupOutput(Tool tool, Grammar grammar, String fileName) throws IOException
- Throws:
IOException
-
startMapping
public void startMapping(int sourceLine)
- Specified by:
startMapping
in interfaceJavaCodeGeneratorPrintWriterManager
-
startSingleSourceLineMapping
public void startSingleSourceLineMapping(int sourceLine)
- Specified by:
startSingleSourceLineMapping
in interfaceJavaCodeGeneratorPrintWriterManager
-
endMapping
public void endMapping()
- Specified by:
endMapping
in interfaceJavaCodeGeneratorPrintWriterManager
-
finishOutput
public void finishOutput() throws IOException
- Specified by:
finishOutput
in interfaceJavaCodeGeneratorPrintWriterManager
- Throws:
IOException
-
getSourceMaps
public Map getSourceMaps()
- Specified by:
getSourceMaps
in interfaceJavaCodeGeneratorPrintWriterManager
-
getCurrentOutputLine
public int getCurrentOutputLine()
-
-