com.springsource.util.common
Interface Tree.ExceptionThrowingTreeVisitor<V,E extends java.lang.Exception>
- Type Parameters:
V
- type of values in tree nodesE
- type of exceptions possibly thrown
- Enclosing interface:
- Tree<V>
public static interface Tree.ExceptionThrowingTreeVisitor<V,E extends java.lang.Exception>
An ExceptionThrowingTreeVisitor
is used to visit a tree when the visit(Tree)
implementation
needs to be able to throw a checked Exception
.
Concurrent Semantics
Implementations of this interface should be thread safe when used with a thread safe Tree
implementation.
visit
boolean visit(Tree<V> tree)
throws E extends java.lang.Exception
- Visits the given
Tree
. The return value determines whether or not any children of the given tree are
visited.
- Parameters:
tree
- a Tree
- Returns:
true
if and only if the children of the given tree should be visited.
- Throws:
E
- if an error occurs when visiting the tree
E extends java.lang.Exception