Package org.yaml.snakeyaml.events
Class NodeEvent
java.lang.Object
org.yaml.snakeyaml.events.Event
org.yaml.snakeyaml.events.NodeEvent
- Direct Known Subclasses:
AliasEvent
,CollectionStartEvent
,ScalarEvent
Base class for all events that mark the beginning of a node.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNode anchor by which this node might later be referenced by aAliasEvent
.protected String
Generate human readable representation of the EventMethods inherited from class org.yaml.snakeyaml.events.Event
equals, getEndMark, getEventId, getStartMark, hashCode, is, toString
-
Field Details
-
anchor
-
-
Constructor Details
-
NodeEvent
-
-
Method Details
-
getAnchor
Node anchor by which this node might later be referenced by aAliasEvent
.Note that
AliasEvent
s are by it selfNodeEvent
s and use this property to indicate the referenced anchor.- Returns:
- Anchor of this node or
null
if no anchor is defined.
-
getArguments
Description copied from class:Event
Generate human readable representation of the Event- Overrides:
getArguments
in classEvent
- Returns:
- representation fore humans
- See Also:
-
- "__repr__ for Event in PyYAML"
-