public class NameTokenizer extends Object implements Iterator<String>
| Constructor and Description |
|---|
NameTokenizer(String source)
This is the only constructor of the name tokenizer - it prepares it for parsing the source
string/identifier.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
This method checks if there is a following word identified.
|
String |
next()
This method returns the next word identified if one exists.
|
void |
remove()
This method removes the word just retrieved by next().
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic NameTokenizer(String source)
source - is the identifier or general text to be parsedpublic void remove()
remove in interface Iterator<String>Iterator.remove()public boolean hasNext()
hasNext in interface Iterator<String>Iterator.hasNext()Copyright © 2001–2018 MDA Tools. All rights reserved.