TreeNodeContext

Properties

Link copied to clipboard
open override var attributes: List<T>
Link copied to clipboard
open override var name: String

Functions

Link copied to clipboard
fun atRelativePath(index1: Int, vararg indices: Int, init: TreeNodeContext<T>.() -> Unit)

Move to a context relative to the current context.

Link copied to clipboard
fun emptyNode(name: String)

Add a child with no attributes to this node

Link copied to clipboard
fun emptyNodes(names: List<String>): Int

Add empty nodes (nodes with no attributes) to current context.

fun emptyNodes(name1: String, vararg names: String): Int

Add named children with empty attributes to this node

Link copied to clipboard
fun node(init: TreeNodeContext<T>.() -> Unit)

Add an empty node to configure inside the builder afterward.

fun node(name: String, attributes: List<T> = emptyList(), init: TreeNodeContext<T>.() -> Unit)

Add a new named node with a builder