gnu.text

Interface SourceLocator

All Superinterfaces:
org.xml.sax.Locator
Known Implementing Classes:
AccessExp, ApplyExp, BeginExp, BlockExp, CatchClause, ChainLambdas, ClassExp, Compilation, Declaration, ErrorExp, ExitExp, Expression, ExpWalker, FindCapturedVars, FindTailCalls, FluidLetExp, IfExp, InlineCalls, LambdaExp, LangExp, LetExp, ModuleExp, ObjectExp, PairWithPosition, PatternScope, PushApply, QuoteExp, ReferenceExp, ResolveNames, ScopeExp, SetExp, SourceError, SourceMessages, SynchronizedExp, TemplateScope, ThisExp, Translator, TryExp, XMLFilter, XQResolveNames

public interface SourceLocator
extends org.xml.sax.Locator

Method Summary

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

Method Details

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.