TreeNodeInfoNavigationExtension extension

Adds methods to TreeNodeInfo for navigating ancestor and descendant nodes.

on

Methods

ancestors() → Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the ancestor nodes of this node.
children() → Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

The child nodes of this node.
descendants() → Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the descendant nodes of this node, in depth first order
leaves() → Iterable<LeafNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the descendant leaf nodes of this node.
parent() → TreeNodeInfo?

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

The parent node of this node, or null if it is a root node.
root() → RootNodeInfo

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Returns the root ancestor node of this node, or this node itself if it is a root node.
selfAndAncestors() → Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the self-and-ancestor nodes of this node.
selfAndDescendants() → Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the self-and-descendant nodes of this node, in depth-first order