Class NodeEvent
java.lang.Object
org.snakeyaml.engine.v2.events.Event
org.snakeyaml.engine.v2.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.Methods inherited from class Event
getEndMark, getEventId, getStartMark
-
Field Details
-
anchor
-
-
Constructor Details
-
NodeEvent
-
-
Method Details
-
getAnchor
Node anchor by which this node might later be referenced by aAliasEvent.Note that
AliasEvents are by it selfNodeEvents and use this property to indicate the referenced anchor.- Returns:
- Anchor of this node or
nullif no anchor is defined.
-