antlr
Interface JavaCodeGeneratorPrintWriterManager

All Known Implementing Classes:
DefaultJavaCodeGeneratorPrintWriterManager

public interface JavaCodeGeneratorPrintWriterManager

Defines a strategy that can be used to manage the printwriter being used to write JavaCodeGenerator output TODO generalize so all code gens could use?


Method Summary
 void endMapping()
           
 void finishOutput()
           
 Map getSourceMaps()
           
 PrintWriter setupOutput(Tool tool, Grammar grammar)
           
 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
Throws:
IOException

setupOutput

public PrintWriter setupOutput(Tool tool,
                               String fileName)
                        throws IOException
Throws:
IOException

startMapping

public void startMapping(int sourceLine)

startSingleSourceLineMapping

public void startSingleSourceLineMapping(int sourceLine)

endMapping

public void endMapping()

finishOutput

public void finishOutput()
                  throws IOException
Throws:
IOException

getSourceMaps

public Map getSourceMaps()