Class DocumentEndEvent

java.lang.Object
org.snakeyaml.engine.v2.events.Event
org.snakeyaml.engine.v2.events.DocumentEndEvent

public final class DocumentEndEvent extends Event
Marks the end of a document.

This event follows the document's content.

  • Field Details

    • explicit

      private final boolean explicit
  • Constructor Details

    • DocumentEndEvent

      public DocumentEndEvent(boolean explicit, Optional<Mark> startMark, Optional<Mark> endMark)
    • DocumentEndEvent

      public DocumentEndEvent(boolean explicit)
  • Method Details

    • isExplicit

      public boolean isExplicit()
    • getEventId

      public Event.ID getEventId()
      Description copied from class: Event
      Get the type (kind) if this Event
      Specified by:
      getEventId in class Event
      Returns:
      the ID of this Event
    • toString

      public String toString()
      Overrides:
      toString in class Object