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 voidendMapping()voidfinishOutput()intgetCurrentOutputLine()MapgetSourceMaps()PrintWritersetupOutput(Tool tool, Grammar grammar)PrintWritersetupOutput(Tool tool, Grammar grammar, String fileName)PrintWritersetupOutput(Tool tool, String fileName)voidstartMapping(int sourceLine)voidstartSingleSourceLineMapping(int sourceLine)
-
-
-
Method Detail
-
setupOutput
public PrintWriter setupOutput(Tool tool, Grammar grammar) throws IOException
- Specified by:
setupOutputin interfaceJavaCodeGeneratorPrintWriterManager- Throws:
IOException
-
setupOutput
public PrintWriter setupOutput(Tool tool, String fileName) throws IOException
- Specified by:
setupOutputin 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:
startMappingin interfaceJavaCodeGeneratorPrintWriterManager
-
startSingleSourceLineMapping
public void startSingleSourceLineMapping(int sourceLine)
- Specified by:
startSingleSourceLineMappingin interfaceJavaCodeGeneratorPrintWriterManager
-
endMapping
public void endMapping()
- Specified by:
endMappingin interfaceJavaCodeGeneratorPrintWriterManager
-
finishOutput
public void finishOutput() throws IOException- Specified by:
finishOutputin interfaceJavaCodeGeneratorPrintWriterManager- Throws:
IOException
-
getSourceMaps
public Map getSourceMaps()
- Specified by:
getSourceMapsin interfaceJavaCodeGeneratorPrintWriterManager
-
getCurrentOutputLine
public int getCurrentOutputLine()
-
-