| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | visitBreadthFirst(Node
the start node, and the first one that is passed to process(node). node)https://en.wikipedia.org/wiki/Breadth-first_search |
| public void | visitDirectChildren(Node node)
Performs a simple traversal over all nodes that have the passed node as their parent. |
| public void | |
| public void | visitPostOrder(Node
The node at which the traversal begins. node)Performs a post-order node traversal starting with a given node. |
| public void | visitPreOrder(Node
The node at which the traversal begins. node)Performs a pre-order node traversal starting with a given node. |
| TreeVisitor | back to summary |
|---|---|
| public TreeVisitor() | |
| process | back to summary |
|---|---|
| public abstract void process(Node node) Process the given node.
| |
| visitBreadthFirst | back to summary |
|---|---|
| public void visitBreadthFirst(Node node) https://en.wikipedia.org/wiki/Breadth-first_search
| |
| visitDirectChildren | back to summary |
|---|---|
| public void visitDirectChildren(Node node) Performs a simple traversal over all nodes that have the passed node as their parent. | |
| visitLeavesFirst | back to summary |
|---|---|
| public void visitLeavesFirst(Node node) | |
| visitPostOrder | back to summary |
|---|---|
| public void visitPostOrder(Node node) Performs a post-order node traversal starting with a given node. When each node is visited,
| |
| visitPreOrder | back to summary |
|---|---|
| public void visitPreOrder(Node node) Performs a pre-order node traversal starting with a given node. When each node is visited,
| |