| java.lang.Object henplus.commands.CommandTokenizer
CommandTokenizer | public class CommandTokenizer implements Iterator(Code) | | Utility class to split Commands into tokens.
|
CommandTokenizer | public CommandTokenizer(String cmd, String separatorPairs)(Code) | | Tokenizes a command string. Strings are separated at any whitespace
character if not within nested element.
Handles nesting with the given
separatorPairs; separator pairs have to be given always in
pairs, even if the opening and closing element is the same.
Example could be ""()[]{} . These separator
pairs handle strings and elements in all kinds of parentheses.
|
hasNext | public boolean hasNext()(Code) | | |
isCurrentTokenFinished | public boolean isCurrentTokenFinished()(Code) | | returns, wether the current token is finished. An token is unfinished
if
- it is a nested token that has not seen its closing element till
the end of the string.
- it is a normal token that is not followed by a whitespace
|
remove | public void remove()(Code) | | |
|
|