KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > FileLineFormatter


1 package persistence.antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 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 JavaDoc getFormatString(String JavaDoc fileName, int line, int column);
26 }
27
Popular Tags