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