Tokens.
The parser and the scanner form together the 'Parse' step in the loading process (see chapter 3.1 of the YAML Specification).
org.yaml.snakeyaml.tokens.Token
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the next token is one of the given types. Returns
false if no more tokens are available.token IDs to match with choicesCheck if the next token is one of the given types. |
| public Token | |
| public Token | |
| public void |
| checkToken | back to summary |
|---|---|
| public boolean checkToken(Token. Check if the next token is one of the given types.
| |
| getToken | back to summary |
|---|---|
| public Token getToken() Returns the next token.
The token will be removed from the stream. (Every invocation of this method must happen after
calling either
| |
| peekToken | back to summary |
|---|---|
| public Token peekToken() Return the next token, but do not delete it from the stream.
| |
| resetDocumentIndex | back to summary |
|---|---|
| public void resetDocumentIndex() | |