de.rwth.utils
Class AbstractTreeIteratorTraversalActions

java.lang.Object
  |
  +--de.rwth.utils.AbstractTreeIteratorTraversalActions
All Implemented Interfaces:
TreeIteratorTraversal.Actions

public abstract class AbstractTreeIteratorTraversalActions
extends java.lang.Object
implements TreeIteratorTraversal.Actions

This class provides default implementations for the TreeIteratorTraversal.Actions interface. This class actually implements all methods, but does nothing.

Version:
$Id: AbstractTreeIteratorTraversalActions.java,v 1.2 2002/09/17 06:53:53 mohnen Exp $
Author:
Markus Mohnen

Constructor Summary
AbstractTreeIteratorTraversalActions()
           
 
Method Summary
 void atEntry(TreeIterator ti)
          Called once at the beginning of the traversal, before visiting the first entry in the tree.
 void atExit(TreeIterator ti)
          Called once at the end of the traversal, after visiting the last entry in the tree.
 void atLeaf(TreeIterator ti)
          Called once at each leaf entry, after calling atNext or atRight for this node.
 void atLeft(TreeIterator ti)
          Called always after executing left on the TreeIterator.
 void atNext(TreeIterator ti)
          Called always after executing next on the TreeIterator.
 void atPrevious(TreeIterator ti)
          Called always after executing previous on the TreeIterator.
 void atRight(TreeIterator ti)
          Called always after executing right on the TreeIterator.
 void atRoot(TreeIterator ti)
          Called once at the root entry, before calling atNext for this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTreeIteratorTraversalActions

public AbstractTreeIteratorTraversalActions()
Method Detail

atEntry

public void atEntry(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called once at the beginning of the traversal, before visiting the first entry in the tree.
Specified by:
atEntry in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry

atExit

public void atExit(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called once at the end of the traversal, after visiting the last entry in the tree.
Specified by:
atExit in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry

atRoot

public void atRoot(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called once at the root entry, before calling atNext for this node.
Specified by:
atRoot in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry

atLeaf

public void atLeaf(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called once at each leaf entry, after calling atNext or atRight for this node.
Specified by:
atLeaf in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry

atNext

public void atNext(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called always after executing next on the TreeIterator.
Specified by:
atNext in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry

atPrevious

public void atPrevious(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called always after executing previous on the TreeIterator.
Specified by:
atPrevious in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry

atLeft

public void atLeft(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called always after executing left on the TreeIterator.
Specified by:
atLeft in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry

atRight

public void atRight(TreeIterator ti)
Description copied from interface: TreeIteratorTraversal.Actions
Called always after executing right on the TreeIterator.
Specified by:
atRight in interface TreeIteratorTraversal.Actions
Following copied from interface: de.rwth.utils.TreeIteratorTraversal.Actions
Parameters:
ti - the TreeIterator being traversed, with 'ti.current()' returning the current entry