@FunctionalInterface public interface ObjectGraphVisitor<T>
If a node has inbound edges from more than one other node, it is unspecified which parent the visitor will be invoked as a child of.
| Modifier and Type | Method and Description |
|---|---|
void |
enterNode(T node,
int depth)
Enter a node; subsequent calls to enterNode before a call to exitNode
means the subsequent nodes are referenced by the previous one.
|
default void |
exitNode(T node,
int depth)
Called when the last child of a node has been visited.
|
void enterNode(T node, int depth)
node - The nodedepth - The depth of this node in the tree, in the traversal pattern
being used.default void exitNode(T node, int depth)
node - The nodedepth - The depth of this node in the tree in the traversal pattern
being usedCopyright © 2010–2020 Mastfrog Technologies. All rights reserved.