Modifier and Type | Method and Description |
---|---|
boolean |
checkToken(Token.ID... choices)
Check if the next token is one of the given types.
|
Token |
next()
Returns the next token.
|
Token |
peekToken()
Return the next token, but do not delete it from the stream.
|
forEachRemaining, hasNext, remove
boolean 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(com.hazelcast.org.snakeyaml.engine.v1.tokens.Token.ID...)
.next()
ScannerException
- Thrown in case of malformed input.IndexOutOfBoundsException
- if no more token leftToken next()
The token will be removed from the stream.
(Every invocation of this method must happen after calling checkToken(com.hazelcast.org.snakeyaml.engine.v1.tokens.Token.ID...)
.
next
in interface Iterator<Token>
ScannerException
- Thrown in case of malformed input.IndexOutOfBoundsException
- if no more token leftCopyright © 2019 Hazelcast, Inc.. All rights reserved.