|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Locator
An interface that provides information about the location of the current parser activity. Note that parsers may make a best-effort attempt at determining the location.
Method Summary | |
---|---|
int |
getDocumentOffset()
get the 0-based character offset of the current character from the start of the document. |
int |
getLineCharacterOffset()
get the 0-based offset of the current character in the current line |
int |
getLineDocumentOffset()
get the 0-based character offset of the current line from the start of the document |
int |
getLineLength()
get the length of the current line in characters, not including the line terminator |
int |
getLineNumber()
get the 1-based number of the current line. |
int |
getLineSegmentEndOffset()
Get the 0-based offset of the end of the current line segment being processed, exclusive. |
Method Detail |
---|
int getLineNumber()
int getLineDocumentOffset()
int getDocumentOffset()
getLineDocumentOffset()+getLineCharacterOffset()
int getLineLength()
int getLineCharacterOffset()
int getLineSegmentEndOffset()
getLineCharacterOffset()
and ends on the character preceding this
offset, [s,e)
where s is the start and e is the end.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |