gnu.text

Interface SourceLocator

public interface SourceLocator extends Locator

Method Summary
intgetColumnNumber()
Return current column number.
StringgetFileName()
Normally same as getSystemId.
intgetLineNumber()
Return current line number.
StringgetPublicId()
StringgetSystemId()
booleanisStableSourceLocation()
True if position is unlikely to change.

Method Detail

getColumnNumber

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

getFileName

public String getFileName()
Normally same as getSystemId.

getLineNumber

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

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

isStableSourceLocation

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