com.faunos.util.tree
Interface TraverseListener<T>

All Known Implementing Classes:
DirectoryRemover.Deleter

public interface TraverseListener<T>

A listener for depth-first traversal of a tree structure.

Author:
Babak Farhang
See Also:
AbstractTraverser.setListener(TraverseListener)

Method Summary
 void postorder(T node)
          Invoked by the Traverser on traversing a node in post-order.
 void preorder(T node)
          Invoked by the Traverser on traversing a node in pre-order.
 

Method Detail

preorder

void preorder(T node)
Invoked by the Traverser on traversing a node in pre-order. Every node in the tree structure is guaranteed to be represented by exactly one invocation of this method.


postorder

void postorder(T node)
Invoked by the Traverser on traversing a node in post-order. Every node in the tree structure is guaranteed to be represented by exactly one invocation of this method.



SourceForge.net Logo