|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Iterator across a specified range of the tokens generated from the xpath expressions.
Method Summary | |
TokenIterator |
createSnapshot()
Creates a snapshot since the time markForSnapshot was called including all the elements that was gotten using next(). |
boolean |
hasNext()
Check if there is any more tokens. |
boolean |
hasPrevious()
Check if previous will return valid token. |
void |
markForSnapshot()
Marks the position to start recoding. |
String |
next()
Returns the value of the token. |
boolean |
nextTokenIs(char c)
Returns true if the next token is the char specified. |
String |
peekNext()
Peeks the next token w/o incrementing cursor. |
String |
previous()
Returns the previous element in the list. |
void |
rewind()
Re-initializes the iterator. |
Method Detail |
public boolean hasPrevious()
public String previous()
NoSuchElementException
- - if the iteration has
no previous element.public boolean nextTokenIs(char c)
public String peekNext()
NoSuchElementException
- - if the iteration has
no previous element.public String next()
public boolean hasNext()
public void markForSnapshot()
public TokenIterator createSnapshot()
public void rewind()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |