01: package gnu.text;
02:
03: public interface SourceLocator
04: /* #ifdef SAX2 */
05: extends
06: /* #ifdef JAXP-1.3 */
07: // javax.xml.transform.SourceLocator,
08: /* #endif */
09: org.xml.sax.Locator
10: /* #endif */
11: {
12: /** Return current column number.
13: * The "first" column is column 1; unknown is -1. */
14: public int getColumnNumber();
15:
16: /** Return current line number.
17: * The "first" line is line 1; unknown is -1. */
18: public int getLineNumber();
19:
20: public String getPublicId();
21:
22: public String getSystemId();
23:
24: /** Normally same as getSystemId. */
25: public String getFileName();
26:
27: /** True if position is unlikely to change.
28: * True for an expression but not an input file. */
29: public boolean isStableSourceLocation();
30: }
|