| Constructor and Description |
|---|
OffsetTokenizer() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
enhanceNextToken(TokenProperty<T> property,
T value)
Enhance the next token.
|
protected abstract boolean |
findNextToken(int previousEnd)
Find the next token.
|
boolean |
hasNext()
Get if any more tokens are available.
|
Token |
next()
Get the next available token.
|
protected MutableToken |
nextToken()
Get the token that has been set by the last call to
setNextToken(TokenType, int, CharSequence). |
protected void |
setNextToken(TokenType type,
int start,
CharSequence text)
Set the next token.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic boolean hasNext()
Tokenizerprotected abstract boolean findNextToken(int previousEnd)
previousEnd - the offset at which the previous token endedtrue if a token was found, false if no more tokens
are available.protected MutableToken nextToken()
setNextToken(TokenType, int, CharSequence).protected void setNextToken(TokenType type, int start, CharSequence text)
findNextToken(int) to
update information about the token that has been found.protected <T> void enhanceNextToken(TokenProperty<T> property, T value)
setNextToken(TokenType, int, CharSequence) to enhance the token
with properties.Copyright © 2018. All rights reserved.