public final class TreeWalkerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <A> void |
proceduralBiWalk(ComponentLookup lookup,
ComponentNode startingNode,
Class<A> klass,
BiConsumer<ComponentNode,A> pre,
BiConsumer<ComponentNode,A> post)
Full tree walking of the component node.
|
static void |
proceduralNodeWalk(ComponentLookup lookup,
ComponentNode startingNode,
Consumer<ComponentNode> pre,
Consumer<ComponentNode> post)
Full tree walking of the component node targeted on the node itself.
|
static <A> void |
proceduralWalk(ComponentLookup lookup,
ComponentNode startingNode,
Class<A> klass,
Consumer<A> pre,
Consumer<A> post)
Full Tree walking method targeted on the node's inner object.
|
static <A> void |
treeBiWalk(ComponentLookup lookup,
ComponentNode startingNode,
Class<A> klass,
BiFunction<ComponentNode,A,TreeWalkerDiag> func,
BiConsumer<ComponentNode,A> post)
Walks the components tree recursively, applying rules of
TreeWalkerDiag (the walk can be interrupted by HANDLING_CHILDREN
(the code is not invoked on children) or STOP (the code abruptly ends) on
the node's inner component. |
static <A> void |
treeWalk(ComponentLookup lookup,
ComponentNode startingNode,
Class<A> klass,
Function<A,TreeWalkerDiag> func,
Consumer<A> post)
Walks the components tree recursively, applying rules of
TreeWalkerDiag (the walk can be interrupted by HANDLING_CHILDREN
(the code is not invoked on children) or STOP (the code abruptly ends) on
the node's inner component. |
public static <A> void proceduralWalk(ComponentLookup lookup, ComponentNode startingNode, Class<A> klass, Consumer<A> pre, Consumer<A> post)
A - the type of the target nodelookup - startingNode - the node to start the procedure from.klass - pre - the procedure to apply in pre orderpost - the procedure to apply in post orderpublic static void proceduralNodeWalk(ComponentLookup lookup, ComponentNode startingNode, Consumer<ComponentNode> pre, Consumer<ComponentNode> post)
lookup - startingNode - pre - post - public static <A> void proceduralBiWalk(ComponentLookup lookup, ComponentNode startingNode, Class<A> klass, BiConsumer<ComponentNode,A> pre, BiConsumer<ComponentNode,A> post)
A - lookup - startingNode - klass - pre - post - public static <A> void treeWalk(ComponentLookup lookup, ComponentNode startingNode, Class<A> klass, Function<A,TreeWalkerDiag> func, Consumer<A> post)
TreeWalkerDiag (the walk can be interrupted by HANDLING_CHILDREN
(the code is not invoked on children) or STOP (the code abruptly ends) on
the node's inner component.A - the type of nodelookup - startingNode - klass - func - post - public static <A> void treeBiWalk(ComponentLookup lookup, ComponentNode startingNode, Class<A> klass, BiFunction<ComponentNode,A,TreeWalkerDiag> func, BiConsumer<ComponentNode,A> post)
TreeWalkerDiag (the walk can be interrupted by HANDLING_CHILDREN
(the code is not invoked on children) or STOP (the code abruptly ends) on
the node's inner component.A - lookup - startingNode - klass - func - post - Copyright © 2022 LSST. All rights reserved.