antlr
Class DefaultJavaCodeGeneratorPrintWriterManager

java.lang.Object
  extended by antlr.DefaultJavaCodeGeneratorPrintWriterManager
All Implemented Interfaces:
JavaCodeGeneratorPrintWriterManager

public class DefaultJavaCodeGeneratorPrintWriterManager
extends java.lang.Object
implements JavaCodeGeneratorPrintWriterManager


Constructor Summary
DefaultJavaCodeGeneratorPrintWriterManager()
           
 
Method Summary
 void endMapping()
           
 void finishOutput()
           
 int getCurrentOutputLine()
           
 java.util.Map getSourceMaps()
           
 java.io.PrintWriter setupOutput(Tool tool, Grammar grammar)
           
 java.io.PrintWriter setupOutput(Tool tool, Grammar grammar, java.lang.String fileName)
           
 java.io.PrintWriter setupOutput(Tool tool, java.lang.String fileName)
           
 void startMapping(int sourceLine)
           
 void startSingleSourceLineMapping(int sourceLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJavaCodeGeneratorPrintWriterManager

public DefaultJavaCodeGeneratorPrintWriterManager()
Method Detail

setupOutput

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

setupOutput

public java.io.PrintWriter setupOutput(Tool tool,
                                       java.lang.String fileName)
                                throws java.io.IOException
Specified by:
setupOutput in interface JavaCodeGeneratorPrintWriterManager
Throws:
java.io.IOException

setupOutput

public java.io.PrintWriter setupOutput(Tool tool,
                                       Grammar grammar,
                                       java.lang.String fileName)
                                throws java.io.IOException
Throws:
java.io.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

endMapping

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

finishOutput

public void finishOutput()
                  throws java.io.IOException
Specified by:
finishOutput in interface JavaCodeGeneratorPrintWriterManager
Throws:
java.io.IOException

getSourceMaps

public java.util.Map getSourceMaps()
Specified by:
getSourceMaps in interface JavaCodeGeneratorPrintWriterManager

getCurrentOutputLine

public int getCurrentOutputLine()