Class NodeEvent

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.snakeyaml.engine.v2.events.Event

        Event.ID
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Optional<Anchor> anchor  
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeEvent​(java.util.Optional<Anchor> anchor, java.util.Optional<Mark> startMark, java.util.Optional<Mark> endMark)  
    • Field Detail

      • anchor

        private final java.util.Optional<Anchor> anchor
    • Constructor Detail

      • NodeEvent

        public NodeEvent​(java.util.Optional<Anchor> anchor,
                         java.util.Optional<Mark> startMark,
                         java.util.Optional<Mark> endMark)
    • Method Detail

      • getAnchor

        public java.util.Optional<Anchor> getAnchor()
        Node anchor by which this node might later be referenced by a AliasEvent.

        Note that AliasEvents are by it self NodeEvents and use this property to indicate the referenced anchor.

        Returns:
        Anchor of this node or null if no anchor is defined.