TUM CCSM Commons

edu.tum.cs.commons.visitor
Interface ITreeWalker<T,X extends java.lang.Exception>

Type Parameters:
T - the type used for the nodes of the tree.
X - the type of exception thrown. Use NeverThrownRuntimeException if no exception is thrown

public interface ITreeWalker<T,X extends java.lang.Exception>

Interface for a tree walker, i.e. a class which allows the traversal of a tree. The implementor has to make sure, that this really is a tree, i.e. for two different node, the children returned must be disjunctive, and traversing the tree may not result in loops.

Version:
$Rev: 26283 $
Author:
hummelb, $Author: juergens $
Rating:
GREEN Hash: 701FABCC4E43F428F5B99176C88A1CE5

Method Summary
 java.util.Collection<T> getChildren(T node)
          Returns the children of the given tree node.
 

Method Detail

getChildren

java.util.Collection<T> getChildren(T node)
                                    throws X extends java.lang.Exception
Returns the children of the given tree node. The returned collection may not contain duplicate entries.

Throws:
X extends java.lang.Exception

TUM CCSM Commons

TUM CCSM Commons - 2.7