public interface TokenStream
| Modifier and Type | Method and Description |
|---|---|
ParseException |
createException(String message) |
ParseException |
createException(String message,
Throwable cause) |
ParseException |
createException(Throwable cause) |
boolean |
hasNext()
Gets if there are more tokens.
|
Token |
next()
Gets and consumes the next token.
|
Token |
peek()
Gets without consuming the next token.
|
boolean hasNext()
Token next()
Token peek()
ParseException createException(String message)
ParseException createException(Throwable cause)
ParseException createException(String message, Throwable cause)