KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gnu > text > SourceLocator


1 package gnu.text;
2
3 public interface SourceLocator
4   // These also work with JAXP_1.2 - i.e. JAVA4.
5
/* #ifdef JAXP-1.3 */
6   // extends javax.xml.transform.SourceLocator, org.xml.sax.Locator
7
/* #endif */
8 {
9   /** Return current column number.
10    * The "first" column is column 1; unknown is -1. */

11   public int getColumnNumber();
12
13   /** Return current line number.
14    * The "first" line is line 1; unknown is -1. */

15   public int getLineNumber();
16
17   public String JavaDoc getPublicId();
18
19   public String JavaDoc getSystemId();
20   /** Normally same as getSystemId. */
21   public String JavaDoc getFileName();
22
23   /** True if position is unlikely to change.
24    * True for an expression but not an input file. */

25   public boolean isStableSourceLocation();
26 }
27
Popular Tags