
com.greenpepper.shaded.antlr.JavaCodeGeneratorPrintWriterManager Maven / Gradle / Ivy
The newest version!
package antlr;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
/**
* 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?
*/
public interface JavaCodeGeneratorPrintWriterManager {
public PrintWriter setupOutput(Tool tool, Grammar grammar) throws IOException;
public PrintWriter setupOutput(Tool tool, String fileName) throws IOException;
public void startMapping(int sourceLine);
public void startSingleSourceLineMapping(int sourceLine);
public void endMapping();
public void finishOutput() throws IOException;
public Map getSourceMaps();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy