MappingNode

class MappingNode @JvmOverloads constructor(tag: Tag, val value: List<NodeTuple>, flowStyle: FlowStyle, resolved: Boolean = true, startMark: Mark? = null, endMark: Mark? = null) : CollectionNode<NodeTuple>

Represents a map.

A map is a collection of unsorted key-value pairs.

Parameters

tag

tag of the node

resolved

true when the tag is implicitly resolved

value

the entries of this map

flowStyle

the flow style of the node

startMark

start

endMark

end

Constructors

Link copied to clipboard
constructor(tag: Tag, value: List<NodeTuple>, flowStyle: FlowStyle, resolved: Boolean = true, startMark: Mark? = null, endMark: Mark? = null)

Properties

Link copied to clipboard

The anchor for this Node

Link copied to clipboard

The ordered list of blank lines and block comments (full line) that appear before this node.

Link copied to clipboard

The ordered list of blank lines and block comments (full line) that appear AFTER this node.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ordered list of in-line comments. The first of which appears at the end of the line represented by this node. The rest are in the following lines, indented per the Spec to indicate they are continuation of the inline comment.

Link copied to clipboard

Indicates if this node must be constructed in two steps.

Link copied to clipboard
open override val nodeType: NodeType
Link copied to clipboard
Link copied to clipboard
var tag: Tag

Tag of this node.

Link copied to clipboard
open override val value: List<NodeTuple>

Applications may need to replace the content (Spring Boot). Merging was removed, but it may be implemented.

Functions

Link copied to clipboard
fun getProperty(key: String): Any?

Get the custom runtime property.

Link copied to clipboard
Link copied to clipboard
fun setEndMark(value: Mark?)
Link copied to clipboard
fun setProperty(key: String, value: Any): Any?

Define a custom runtime property. It is not used by Engine but may be used by other tools.

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