public interface Token
A Token
identifies an offset range
within the document. Nodes and Attributes implementing
this interface are identified by the NodeTokenizer
and
AttributeTokenizer
.
Modifier and Type | Method and Description |
---|---|
int |
getBeginOffset()
Beginning offset of the token within the document.
|
StringBuffer |
getDocument()
Returns a reference to the complete document.
|
int |
getEndOffset()
Ending offset of the token within the document.
|
int |
getLineBeginOffset()
Returns the line begining offset in the document that the node starts.
|
int |
getLineNumber()
Returns the line number in the document that the node starts.
|
String |
getRawText()
The complete identifier within the document defined
by the range between the
beginOffset and
endOffset . |
int getBeginOffset()
Beginning offset of the token within the document.
int getEndOffset()
Ending offset of the token within the document.
String getRawText()
The complete identifier within the document defined
by the range between the beginOffset
and
endOffset
.
StringBuffer getDocument()
Returns a reference to the complete document.
int getLineNumber()
Returns the line number in the document that the node starts.
int getLineBeginOffset()
Returns the line begining offset in the document that the node starts.
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.