Class ScalarEvent


public final class ScalarEvent extends NodeEvent
Marks a scalar value.
  • Field Details

  • Constructor Details

  • Method Details

    • getTag

      public Optional<String> getTag()
      Tag of this scalar.
      Returns:
      The tag of this scalar, or null if no explicit tag is available.
    • getScalarStyle

      public ScalarStyle getScalarStyle()
      Style of the scalar.
      null
      Flow Style - Plain
      '\''
      Flow Style - Single-Quoted
      '"'
      Flow Style - Double-Quoted
      '|'
      Block Style - Literal
      '>'
      Block Style - Folded
      Returns:
      Style of the scalar.
    • getValue

      public String getValue()
      String representation of the value.

      Without quotes and escaping.

      Returns:
      Value as Unicode string.
    • getImplicit

      public ImplicitTuple getImplicit()
    • 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
    • isPlain

      public boolean isPlain()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • escapedValue

      public String escapedValue()