|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parser
This interface represents an input stream of Events
.
The parser and the scanner form together the 'Parse' step in the loading process (see chapter 3.1 of the YAML Specification).
Event
Method Summary | |
---|---|
boolean |
checkEvent(Event.ID choice)
Check if the next event is one of the given type. |
Event |
getEvent()
Returns the next event. |
Event |
peekEvent()
Return the next event, but do not delete it from the stream. |
Method Detail |
---|
boolean checkEvent(Event.ID choice)
choice
- Event ID.
true
if the next event can be assigned to a variable
of the given type. Returns false
if no more events
are available.
ParserException
- Thrown in case of malformed input.Event peekEvent()
getEvent()
ParserException
- Thrown in case of malformed input.Event getEvent()
The event will be removed from the stream.
ParserException
- Thrown in case of malformed input.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |