
Public Member Functions | |
| ERXCommandLineTokenizer (String line) | |
| boolean | hasMoreElements () |
| boolean | hasMoreTokens () |
| String | nextElement () |
| String | nextToken () throws ParseException |
Protected Member Functions | |
| void | reset () |
Private Types | |
| enum | TokenizerState { Whitespace, Text, DoubleQuoted, SingleQuoted } |
Private Attributes | |
| StringCharacterIterator | _iterator |
| TokenizerState | _state |
| boolean | _wasQuoted |
enum TokenizerState [private] |
| ERXCommandLineTokenizer | ( | String | line | ) |
| boolean hasMoreElements | ( | ) |
Returns true if there are more tokens on the line.
| boolean hasMoreTokens | ( | ) |
Returns true if there are more tokens on the line.
| String nextElement | ( | ) |
Returns the next token, or null if there is a parse error.
| String nextToken | ( | ) | throws ParseException |
Returns the next token.
| ParseException | if there is a parse failure | |
| NoSuchElementException | if there are no more tokens to parse |
| void reset | ( | ) | [protected] |
StringCharacterIterator _iterator [private] |
TokenizerState _state [private] |
boolean _wasQuoted [private] |
1.5.8