| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final char[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| private int | |
| public int | |
| public boolean | |
| private boolean | |
| private boolean | |
| public String | |
| public char | |
| public void | |
| private void |
| index | back to summary |
|---|---|
| private int index | |
| separators | back to summary |
|---|---|
| private final char[] separators | |
| text | back to summary |
|---|---|
| private final String text | |
| Tokenizer | back to summary |
|---|---|
| public Tokenizer(String text, char... separators) Constructs a Tokenizer.
| |
| accept | back to summary |
|---|---|
| public boolean accept(String match) If the next token matches a string, it is consumed and | |
| accept | back to summary |
|---|---|
| public boolean accept(String... matches) Similar to accept(String), but requires several tokens to match. | |
| acceptAny | back to summary |
|---|---|
| public boolean acceptAny(String... matches) Similar to accept(String...), but sufficient if one token matches. | |
| close | back to summary |
|---|---|
| public void close() throws ParseException Implements java. Closes the Tokenizer. Requires that all the tokens have been consumed.
| |
| expect | back to summary |
|---|---|
| public void expect(String expected) throws ParseException Throws exception if the next token doesn't match. | |
| findNext | back to summary |
|---|---|
| private int findNext(char c) throws ParseException | |
| getPosition | back to summary |
|---|---|
| public int getPosition() Returns the current position in the text. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Return | |
| isQuoteCharacter | back to summary |
|---|---|
| private boolean isQuoteCharacter(char c) | |
| isSeparator | back to summary |
|---|---|
| private boolean isSeparator(char c) | |
| next | back to summary |
|---|---|
| public String next() throws ParseException Return the next token, or throw exception if | |
| peekChar | back to summary |
|---|---|
| public char peekChar() throws ParseException Return the next character without consuming it, or throw exception if
| |
| skipLine | back to summary |
|---|---|
| public void skipLine() Skips all character until | |
| skipWhitespace | back to summary |
|---|---|
| private void skipWhitespace() | |