Package uk.ac.starlink.util
Interface NodeDescendants.Visitor
- Enclosing class:
- NodeDescendants
public static interface NodeDescendants.Visitor
The
Visitor
processes a single node in a
tree. This allows an object to visit each of the nodes in a tree.-
Method Summary
-
Method Details
-
visitNode
Visit a node in a tree. If the object doing the visiting wishes to stop the traversal early, it should return non-null. Otherwise it should return null.- Parameters:
n
- the node being visited- Returns:
- null if the traversal is to continue after this node; non-null if it is to stop
-