T - type of tree node payload.public abstract class DFTreeVisitor<T> extends java.lang.Object implements ITreeVisitor<T>
Note that this visitor should not be used for large trees, as the stack depth required can become quite large.
DFIterator| Constructor and Description |
|---|
DFTreeVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
processPayload(T value,
int level)
Override in subclasses to act on the values in depth first order.
|
void |
visit(ITreeNode<T> node) |
public void visit(ITreeNode<T> node)
visit in interface ITreeVisitor<T>protected abstract void processPayload(T value, int level)
value - the payload.level - the tree level.