|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectTemplateTokenizer
public class TemplateTokenizer
The identified tokens and the text between the matching tokens in the template are all returned.
| Constructor Summary | |
|---|---|
TemplateTokenizer(CharSequence template)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if there are more literals or tokens/delimiters. |
boolean |
isTokenNext()
Returns true if the call to next() will return a token rather than a literal. |
Object |
next()
Returns the next literal string or token/delimiter. |
void |
remove()
Not supported. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateTokenizer(CharSequence template)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic boolean isTokenNext()
public void remove()
remove in interface Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||