public interface Scanner
Tokens.
The parser and the scanner form together the 'Parse' step in the loading process (see chapter 3.1 of the YAML Specification).
Tokenboolean checkToken(Token.ID... choices)
choices - token IDs.true if the next token can be assigned to a variable
of at least one of the given types. Returns false if
no more tokens are available.ScannerException - Thrown in case of malformed input.Token peekToken()
checkToken(org.yaml.snakeyaml.tokens.Token.ID...).getToken()ScannerException - Thrown in case of malformed input.IndexOutOfBoundsException - if no more token leftToken getToken()
The token will be removed from the stream.
(Every invocation of this method must happen after calling checkToken(org.yaml.snakeyaml.tokens.Token.ID...).
ScannerException - Thrown in case of malformed input.IndexOutOfBoundsException - if no more token leftCopyright © 2008–2021. All rights reserved.