gnu.text
Interface SourceLocator

All Superinterfaces:
org.xml.sax.Locator, javax.xml.transform.SourceLocator

public interface SourceLocator
extends javax.xml.transform.SourceLocator, org.xml.sax.Locator


Method Summary
 int getColumnNumber()
          Return current column number.
 java.lang.String getFileName()
          Normally same as getSystemId.
 int getLineNumber()
          Return current line number.
 java.lang.String getPublicId()
           
 java.lang.String getSystemId()
           
 boolean isStableSourceLocation()
          True if position is unlikely to change.
 

Method Detail

getColumnNumber

int getColumnNumber()
Return current column number. The "first" column is column 1; unknown is -1.

Specified by:
getColumnNumber in interface org.xml.sax.Locator
Specified by:
getColumnNumber in interface javax.xml.transform.SourceLocator

getLineNumber

int getLineNumber()
Return current line number. The "first" line is line 1; unknown is -1.

Specified by:
getLineNumber in interface org.xml.sax.Locator
Specified by:
getLineNumber in interface javax.xml.transform.SourceLocator

getPublicId

java.lang.String getPublicId()
Specified by:
getPublicId in interface org.xml.sax.Locator
Specified by:
getPublicId in interface javax.xml.transform.SourceLocator

getSystemId

java.lang.String getSystemId()
Specified by:
getSystemId in interface org.xml.sax.Locator
Specified by:
getSystemId in interface javax.xml.transform.SourceLocator

getFileName

java.lang.String getFileName()
Normally same as getSystemId.


isStableSourceLocation

boolean isStableSourceLocation()
True if position is unlikely to change. True for an expression but not an input file.