public interface Parser extends Iterator<org.snakeyaml.engine.v2.events.Event>
Events.
The parser and the scanner form together the 'Parse' step in the loading process.
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkEvent(org.snakeyaml.engine.v2.events.Event.ID choice)
Check if the next event is one of the given type.
|
org.snakeyaml.engine.v2.events.Event |
next()
Returns the next event.
|
org.snakeyaml.engine.v2.events.Event |
peekEvent()
Return the next event, but do not delete it from the stream.
|
forEachRemaining, hasNext, removeboolean checkEvent(org.snakeyaml.engine.v2.events.Event.ID choice)
choice - Event ID to matchtrue if the next event has the given ID. Returns false if no
more events are available.ParserException - Thrown in case of malformed input.org.snakeyaml.engine.v2.events.Event peekEvent()
next()ParserException - Thrown in case of malformed input or NoSuchElementException in case no
event is available.org.snakeyaml.engine.v2.events.Event next()
The event will be removed from the stream.
next in interface Iterator<org.snakeyaml.engine.v2.events.Event>ParserException - Thrown in case of malformed input.Copyright © 2018–2022. All rights reserved.