gnu.text
Interface SourceLocator

All Superinterfaces:
org.xml.sax.Locator
All 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.
 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

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

getPublicId

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

getSystemId

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

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.