Package gnu.text
Interface SourceLocator
- All Superinterfaces:
Locator
,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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionint
Return current column number.int
Column (one-origin) of end of range; unknown/unspecified is -1.int
Line number (one-origin) of end of range; unknown/unspecified is -1.Normally same as getSystemId.int
Return current line number.int
Column (one-origin) of start of range; unknown/unspecified is -1.int
Line number (one-origin) of start of range; unknown/unspecified is -1.boolean
True if position is unlikely to change.
-
Method Details
-
getLineNumber
int getLineNumber()Return current line number. Normally the same asgetStartLine()
. The "first" line is line 1; unknown is -1.- Specified by:
getLineNumber
in interfaceLocator
- Specified by:
getLineNumber
in interfaceSourceLocator
-
getColumnNumber
int getColumnNumber()Return current column number. Normally the same asgetStartColumn()
. The "first" column is column 1; unknown is -1.- Specified by:
getColumnNumber
in interfaceLocator
- Specified by:
getColumnNumber
in interfaceSourceLocator
-
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
String getPublicId()- Specified by:
getPublicId
in interfaceLocator
- Specified by:
getPublicId
in interfaceSourceLocator
-
getSystemId
String getSystemId()- Specified by:
getSystemId
in interfaceLocator
- Specified by:
getSystemId
in interfaceSourceLocator
-
getFileName
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.
-