public abstract class TreeVisitor extends Object
| Constructor and Description |
|---|
TreeVisitor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
process(Node node) |
void |
visitBreadthFirst(Node node)
https://en.wikipedia.org/wiki/Breadth-first_search
|
void |
visitDepthFirst(Node node)
https://en.wikipedia.org/wiki/Depth-first_search
|
public void visitDepthFirst(Node node)
node - the start node, and the first one that is passed to process(node).public void visitBreadthFirst(Node node)
node - the start node, and the first one that is passed to process(node).public abstract void process(Node node)
Copyright © 2007–2016. All rights reserved.