NodeBuilder¶
abstract class NodeBuilder<K : Any, V, Self : NodeBuilder<K, V, Self>>(val id: K)
A node's own payload builder for tree - subclass for a concrete V; only build is abstract. Self is the concrete subclass itself, so every node(id) { ... } block's receiver exposes that subclass's own fields rather than just this base class's.
Constructors¶
NodeBuilder¶
constructor(id: K)
Properties¶
id¶
Functions¶
build¶
Finalizes whatever this builder accumulated into the actual payload TreeNode.data ends up holding.
children¶
Declares this node's own children via nested TreeScope.node calls. Callable more than once.
dependsOn¶
Adds node as an extra prerequisite of this node.