Package gnu.text
Interface SourceLocator
-
- All Superinterfaces:
org.xml.sax.Locator,javax.xml.transform.SourceLocator
- All Known Implementing Classes:
AccessExp,ANormalize,ApplyExp,BeginExp,BlockExp,CaseExp,CatchClause,ChainLambdas,ClassExp,Compilation,CurryExp,Declaration,ErrorExp,ExitExp,ExpExpVisitor,Expression,ExpVisitor,FindCapturedVars,FindTailCalls,FluidLetExp,IfExp,InlineCalls,LambdaExp,LangExp,LetExp,ModuleExp,ObjectExp,PairWithPosition,PatternScope,PushApply,QuoteExp,ReferenceExp,ResolveNames,SchemeCompilation,ScopeExp,SetExp,SourceError,SourceLocator.Simple,SourceMessages,SynchronizedExp,SyntaxForms.PairWithPositionSyntaxForm,TemplateScope,ThisExp,Translator,TryExp,XMLFilter,XQResolveNames
public interface SourceLocator extends javax.xml.transform.SourceLocator, org.xml.sax.Locator
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSourceLocator.Simple
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnNumber()Return current column number.intgetEndColumn()Column (one-origin) of end of range; unknown/unspecified is -1.intgetEndLine()Line number (one-origin) of end of range; unknown/unspecified is -1.java.lang.StringgetFileName()Normally same as getSystemId.intgetLineNumber()Return current line number.java.lang.StringgetPublicId()intgetStartColumn()Column (one-origin) of start of range; unknown/unspecified is -1.intgetStartLine()Line number (one-origin) of start of range; unknown/unspecified is -1.java.lang.StringgetSystemId()booleanisStableSourceLocation()True if position is unlikely to change.
-
-
-
Method Detail
-
getLineNumber
int getLineNumber()
Return current line number. Normally the same asgetStartLine(). The "first" line is line 1; unknown is -1.- Specified by:
getLineNumberin interfaceorg.xml.sax.Locator- Specified by:
getLineNumberin interfacejavax.xml.transform.SourceLocator
-
getColumnNumber
int getColumnNumber()
Return current column number. Normally the same asgetStartColumn(). The "first" column is column 1; unknown is -1.- Specified by:
getColumnNumberin interfaceorg.xml.sax.Locator- Specified by:
getColumnNumberin interfacejavax.xml.transform.SourceLocator
-
getStartLine
int getStartLine()
Line number (one-origin) of start of range; unknown/unspecified is -1.
-
getStartColumn
int getStartColumn()
Column (one-origin) of start of range; unknown/unspecified is -1.
-
getEndLine
int getEndLine()
Line number (one-origin) of end of range; unknown/unspecified is -1.
-
getEndColumn
int getEndColumn()
Column (one-origin) of end of range; unknown/unspecified is -1.
-
getPublicId
java.lang.String getPublicId()
- Specified by:
getPublicIdin interfaceorg.xml.sax.Locator- Specified by:
getPublicIdin interfacejavax.xml.transform.SourceLocator
-
getSystemId
java.lang.String getSystemId()
- Specified by:
getSystemIdin interfaceorg.xml.sax.Locator- Specified by:
getSystemIdin interfacejavax.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.
-
-