Constructor and Description
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void addNode(
The tree traverses itself depth-first, calling addNode for each
object it encounters as it goes.
addNode HashTreeTraverser Parameters:
node - the node currently encountered
subTree - the HashTree under the node encountered
public void subtractNode()
Indicates traversal has moved up a step, and the visitor should remove
the top node from it's stack structure.
public void processPath()
Process path is called when a leaf is reached. If a visitor wishes to
generate Lists of path elements to each leaf, it should keep a Stack data
structure of nodes passed to it with addNode, and removing top items for
every subtractNode() call.
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.