Package | Description |
---|---|
org.yaml.snakeyaml | |
org.yaml.snakeyaml.comments | |
org.yaml.snakeyaml.emitter | |
org.yaml.snakeyaml.events | |
org.yaml.snakeyaml.parser |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Event> |
Yaml.SilentEmitter.events |
private java.util.Iterator<Event> |
Yaml.EventIterable.iterator |
Modifier and Type | Method and Description |
---|---|
java.util.List<Event> |
Yaml.SilentEmitter.getEvents() |
java.util.Iterator<Event> |
Yaml.EventIterable.iterator() |
java.lang.Iterable<Event> |
Yaml.parse(java.io.Reader yaml)
Parse a YAML stream and produce parsing events.
|
java.util.List<Event> |
Yaml.serialize(Node data)
Serialize the representation tree into Events.
|
Modifier and Type | Method and Description |
---|---|
void |
Yaml.SilentEmitter.emit(Event event) |
Constructor and Description |
---|
EventIterable(java.util.Iterator<Event> iterator) |
Modifier and Type | Field and Description |
---|---|
private java.util.Queue<Event> |
CommentEventsCollector.eventSource |
Modifier and Type | Method and Description |
---|---|
Event |
CommentEventsCollector.collectEvents(Event event)
Collect all events of the expected type (set during construction) starting with event provided
as an argument and continuing with the top event on the event source.
|
Event |
CommentEventsCollector.collectEventsAndPoll(Event event)
Collect all events of the expected type (set during construction) starting with event provided
as an argument and continuing with the top event on the event source.
|
Modifier and Type | Method and Description |
---|---|
Event |
CommentEventsCollector.collectEvents(Event event)
Collect all events of the expected type (set during construction) starting with event provided
as an argument and continuing with the top event on the event source.
|
Event |
CommentEventsCollector.collectEventsAndPoll(Event event)
Collect all events of the expected type (set during construction) starting with event provided
as an argument and continuing with the top event on the event source.
|
private boolean |
CommentEventsCollector.isEventExpected(Event event)
Determine if the event is a comment of one of the expected types set during construction.
|
Constructor and Description |
---|
CommentEventsCollector(java.util.Queue<Event> eventSource,
CommentType... expectedCommentTypes)
Constructor used to collect events emitted by the Serializer.
|
Modifier and Type | Field and Description |
---|---|
private Event |
Emitter.event |
Modifier and Type | Field and Description |
---|---|
private java.util.Queue<Event> |
Emitter.events |
Modifier and Type | Method and Description |
---|---|
void |
Emitable.emit(Event event) |
void |
Emitter.emit(Event event) |
private boolean |
Emitter.isFoldedOrLiteral(Event event) |
Modifier and Type | Method and Description |
---|---|
private boolean |
Emitter.needEvents(java.util.Iterator<Event> iter,
int count) |
Modifier and Type | Class and Description |
---|---|
class |
AliasEvent
Marks the inclusion of a previously anchored node.
|
class |
CollectionEndEvent
Base class for the end events of the collection nodes.
|
class |
CollectionStartEvent
Base class for the start events of the collection nodes.
|
class |
CommentEvent
Marks a comment block value.
|
class |
DocumentEndEvent
Marks the end of a document.
|
class |
DocumentStartEvent
Marks the beginning of a document.
|
class |
MappingEndEvent
Marks the end of a mapping node.
|
class |
MappingStartEvent
Marks the beginning of a mapping node.
|
class |
NodeEvent
Base class for all events that mark the beginning of a node.
|
class |
ScalarEvent
Marks a scalar value.
|
class |
SequenceEndEvent
Marks the end of a sequence.
|
class |
SequenceStartEvent
Marks the beginning of a sequence node.
|
class |
StreamEndEvent
Marks the end of a stream that might have contained multiple documents.
|
class |
StreamStartEvent
Marks the start of a stream that might contain multiple documents.
|
Modifier and Type | Field and Description |
---|---|
private Event |
ParserImpl.currentEvent |
Modifier and Type | Method and Description |
---|---|
Event |
Parser.getEvent()
Returns the next event.
|
Event |
ParserImpl.getEvent()
Get the next event and proceed further.
|
private Event |
ParserImpl.parseBlockNodeOrIndentlessSequence() |
private Event |
ParserImpl.parseFlowNode() |
private Event |
ParserImpl.parseNode(boolean block,
boolean indentlessSequence) |
Event |
Parser.peekEvent()
Return the next event, but do not delete it from the stream.
|
Event |
ParserImpl.peekEvent()
Get the next event.
|
private Event |
ParserImpl.processEmptyScalar(Mark mark)
block_mapping ::= BLOCK-MAPPING_START
((KEY block_node_or_indentless_sequence?)?
(VALUE block_node_or_indentless_sequence?)?)*
BLOCK-END
|
Event |
ParserImpl.ParseStreamStart.produce() |
Event |
ParserImpl.ParseImplicitDocumentStart.produce() |
Event |
ParserImpl.ParseDocumentStart.produce() |
Event |
ParserImpl.ParseDocumentEnd.produce() |
Event |
ParserImpl.ParseDocumentContent.produce() |
Event |
ParserImpl.ParseBlockNode.produce() |
Event |
ParserImpl.ParseBlockSequenceFirstEntry.produce() |
Event |
ParserImpl.ParseBlockSequenceEntryKey.produce() |
Event |
ParserImpl.ParseBlockSequenceEntryValue.produce() |
Event |
ParserImpl.ParseIndentlessSequenceEntryKey.produce() |
Event |
ParserImpl.ParseIndentlessSequenceEntryValue.produce() |
Event |
ParserImpl.ParseBlockMappingFirstKey.produce() |
Event |
ParserImpl.ParseBlockMappingKey.produce() |
Event |
ParserImpl.ParseBlockMappingValue.produce() |
Event |
ParserImpl.ParseBlockMappingValueComment.produce() |
Event |
ParserImpl.ParseBlockMappingValueCommentList.produce() |
Event |
ParserImpl.ParseFlowSequenceFirstEntry.produce() |
Event |
ParserImpl.ParseFlowSequenceEntry.produce() |
Event |
ParserImpl.ParseFlowEndComment.produce() |
Event |
ParserImpl.ParseFlowSequenceEntryMappingKey.produce() |
Event |
ParserImpl.ParseFlowSequenceEntryMappingValue.produce() |
Event |
ParserImpl.ParseFlowSequenceEntryMappingEnd.produce() |
Event |
ParserImpl.ParseFlowMappingFirstKey.produce() |
Event |
ParserImpl.ParseFlowMappingKey.produce() |
Event |
ParserImpl.ParseFlowMappingValue.produce() |
Event |
ParserImpl.ParseFlowMappingEmptyValue.produce() |
Event |
Production.produce() |