uk.ed.inf.tree
Interface ITreeNodeAction<T extends ITreeNode<T>>


public interface ITreeNodeAction<T extends ITreeNode<T>>


Method Summary
 boolean canContinue()
          Tests whether the node walker should continue based on the outcome of the last action executed.
 void visit(T node)
          Action to be performed at a given node.
 

Method Detail

visit

void visit(T node)
Action to be performed at a given node.

Parameters:
node - The node that is to be acted upon.
Throws:
java.lang.IllegalStateException - if canContinue() == false.

canContinue

boolean canContinue()
Tests whether the node walker should continue based on the outcome of the last action executed.

Returns:
true if it should continue, false if no.