|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
Method Summary | |
---|---|
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 . |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |