| java.lang.Object org.lateralnz.c3d.util.Tokenizer
Tokenizer | public class Tokenizer (Code) | | a custom string tokenizer (based on the standard Java StringTokenizer)
that supports marking a position and returning to it. This is most
useful in lexical analysis/parsing/etc.
|
currentPos | int currentPos(Code) | | |
destroy | final public void destroy()(Code) | | clean up and shutdown
|
hasMoreTokens | final public boolean hasMoreTokens()(Code) | | return true if there are more tokens
|
mark | final public void mark()(Code) | | mark the current position
|
nextToken | final public String nextToken()(Code) | | get the next token
|
peekNextToken | final public String peekNextToken()(Code) | | look at the next token without moving the position indicator.
(basically the works out to mark, next token, release)
|
release | final public void release()(Code) | | return to the last marked position
|
reset | final public void reset()(Code) | | reset the position counter to start tokenizing at the beginning again
|
setString | final public void setString(String text)(Code) | | set the string to tokenize (a helper to save having to create
this object every time)
|
|
|