01: package persistence.antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.jGuru.com
05: * Software rights: http://www.antlr.org/license.html
06: *
07: */
08:
09: public abstract class FileLineFormatter {
10:
11: private static FileLineFormatter formatter = new DefaultFileLineFormatter();
12:
13: public static FileLineFormatter getFormatter() {
14: return formatter;
15: }
16:
17: public static void setFormatter(FileLineFormatter f) {
18: formatter = f;
19: }
20:
21: /** @param fileName the file that should appear in the prefix. (or null)
22: * @param line the line (or -1)
23: * @param column the column (or -1)
24: */
25: public abstract String getFormatString(String fileName, int line,
26: int column);
27: }
|