MappingStartEvent

class MappingStartEvent @JvmOverloads constructor(val anchor: Anchor?, val tag: String?, val implicit: Boolean, val flowStyle: FlowStyle, val startMark: Mark? = null, val endMark: Mark? = null) : CollectionStartEvent

Marks the beginning of a mapping node.

This event is followed by a number of key value pairs.

The pairs are not in any particular order. However, the value always directly follows the corresponding key.

After the key value pairs follows a MappingEndEvent.

There must be an even number of node events between the start and end event.

See also

Constructors

Link copied to clipboard
constructor(anchor: Anchor?, tag: String?, implicit: Boolean, flowStyle: FlowStyle, startMark: Mark? = null, endMark: Mark? = null)

Properties

Link copied to clipboard

Node anchor by which this node might later be referenced by a AliasEvent.

Link copied to clipboard
val endMark: Mark? = null
Link copied to clipboard
open override val eventId: Event.ID

Get the type (kind) of this Event

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val startMark: Mark? = null
Link copied to clipboard
val tag: String?

Tag of this collection.

Functions

Link copied to clipboard

true if this collection is in flow style, false for block style.

Link copied to clipboard

true if the tag can be omitted while this collection is emitted.

Link copied to clipboard
open override fun toString(): String