CollectionStartEvent

abstract class CollectionStartEvent(val anchor: Anchor?, val tag: String?, val implicit: Boolean, val flowStyle: FlowStyle, val startMark: Mark?, val endMark: Mark?) : NodeEvent

Base class for the start events of the collection nodes.

Parameters

implicit

The implicit flag of a collection start event indicates if the tag may be omitted when the collection is emitted

flowStyle

indicates if a collection is block or flow

Inheritors

Constructors

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

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
abstract 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