StackedTreeBuilder class

Builds processing tree in stack like manner

In contrast to TreeBuilder this builder doesn't require to store parent reference in user code while creating sub nodes.

Constructors

StackedTreeBuilder(PNDelegate delegate, dynamic data)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChild(PNDelegate delegate, dynamic data, {bool leaf = true}) → void
Add a node which has no children, don't change current parent node.
build() TreeProcessor
Finalize build and returns TreeProcessor for newly formed tree.
levelUp() → void
Set parent of current node, as a parent for next operations.
nextSibling() bool
Select next child node in parent of current node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prevSibling() bool
Select prev child node in parent of current node.
push(PNDelegate delegate, dynamic data) → void
Adds node and make it as a parent for next operations.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited