public class TokenIterator<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TokenIterator.Action |
| Constructor and Description |
|---|
TokenIterator(List<Token<T>> tokens,
Token<T> end) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNext(int offset,
T tokenType,
String value) |
boolean |
isNext(T tokenType,
String value) |
Token<T> |
next() |
Token<T> |
next(T type) |
String |
nextValue(T type) |
T |
peekTokenType() |
void |
skip() |
void |
skip(T tokenType) |
void |
skip(T tokenType,
String tokenValue) |
boolean |
tryParse(TokenIterator.Action action) |
boolean |
trySkip(T tokenType,
String value) |
public T peekTokenType()
public void skip()
public void skip(T tokenType)
public boolean tryParse(TokenIterator.Action action)
Copyright © 2018. All rights reserved.