de.rwth.utils
Class AbstractTreeIterator

java.lang.Object
  |
  +--de.rwth.utils.AbstractTreeIterator
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator, TreeIterator

public abstract class AbstractTreeIterator
extends java.lang.Object
implements TreeIterator

Describe class AbstractTreeIterator here.

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

Field Summary
protected  Position position
           
 
Constructor Summary
AbstractTreeIterator()
          Describe constructor here.
 
Method Summary
 void add(java.lang.Object o)
          Describe add method here.
 java.lang.Object current()
          Describe current method here.
 int currentIndex()
          Describe currentIndex method here.
abstract  java.lang.Object externalView(java.lang.Object o)
          Describe externalView method here.
 boolean hasCurrent()
          Describe hasCurrent method here.
 boolean hasLeft()
          Describe hasLeft method here.
 boolean hasNext()
          Describe hasNext method here.
 boolean hasPrevious()
          Describe hasPrevious method here.
 boolean hasRight()
          Describe hasRight method here.
 java.lang.Object left()
          Describe left method here.
 int leftIndex()
          Describe leftIndex method here.
 java.lang.Object next()
          Describe next method here.
 int nextIndex()
          Describe nextIndex method here.
 Position position()
          Describe position method here.
 java.lang.Object previous()
          Describe previous method here.
 int previousIndex()
          Describe previousIndex method here.
abstract  java.lang.Object produceLeft()
          Describe produceLeft method here.
abstract  java.lang.Object produceNext()
          Describe produceNext method here.
abstract  java.lang.Object produceRight()
          Describe produceRight method here.
 void remove()
          Describe remove method here.
 java.lang.Object right()
          Describe right method here.
 int rightIndex()
          Describe rightIndex method here.
 void set(java.lang.Object o)
          Describe set method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

protected Position position
Constructor Detail

AbstractTreeIterator

public AbstractTreeIterator()
Describe constructor here.
Method Detail

set

public void set(java.lang.Object o)
Describe set method here.
Specified by:
set in interface java.util.ListIterator
Parameters:
o - a value of type Object

remove

public void remove()
Describe remove method here.
Specified by:
remove in interface java.util.ListIterator

add

public void add(java.lang.Object o)
Describe add method here.
Specified by:
add in interface java.util.ListIterator
Parameters:
o - a value of type Object

hasCurrent

public boolean hasCurrent()
Describe hasCurrent method here.
Specified by:
hasCurrent in interface TreeIterator
Returns:
a value of type boolean

current

public java.lang.Object current()
                         throws java.util.NoSuchElementException
Describe current method here.
Specified by:
current in interface TreeIterator
Returns:
a value of type Object
Throws:
java.util.NoSuchElementException - if an error occurs

currentIndex

public int currentIndex()
Describe currentIndex method here.
Specified by:
currentIndex in interface TreeIterator
Returns:
a value of type int

hasLeft

public boolean hasLeft()
Describe hasLeft method here.
Specified by:
hasLeft in interface TreeIterator
Returns:
a value of type boolean

hasRight

public boolean hasRight()
Describe hasRight method here.
Specified by:
hasRight in interface TreeIterator
Returns:
a value of type boolean

leftIndex

public int leftIndex()
Describe leftIndex method here.
Specified by:
leftIndex in interface TreeIterator
Returns:
a value of type int

rightIndex

public int rightIndex()
Describe rightIndex method here.
Specified by:
rightIndex in interface TreeIterator
Returns:
a value of type int

left

public java.lang.Object left()
                      throws java.util.NoSuchElementException
Describe left method here.
Specified by:
left in interface TreeIterator
Returns:
a value of type Object
Throws:
java.util.NoSuchElementException - if an error occurs

right

public java.lang.Object right()
                       throws java.util.NoSuchElementException
Describe right method here.
Specified by:
right in interface TreeIterator
Returns:
a value of type Object
Throws:
java.util.NoSuchElementException - if an error occurs

hasNext

public boolean hasNext()
Describe hasNext method here.
Specified by:
hasNext in interface java.util.ListIterator
Returns:
a value of type boolean

hasPrevious

public boolean hasPrevious()
Describe hasPrevious method here.
Specified by:
hasPrevious in interface java.util.ListIterator
Returns:
a value of type boolean

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Describe next method here.
Specified by:
next in interface java.util.ListIterator
Returns:
a value of type Object
Throws:
java.util.NoSuchElementException - if an error occurs

previous

public java.lang.Object previous()
                          throws java.util.NoSuchElementException
Describe previous method here.
Specified by:
previous in interface java.util.ListIterator
Returns:
a value of type Object
Throws:
java.util.NoSuchElementException - if an error occurs

nextIndex

public int nextIndex()
Describe nextIndex method here.
Specified by:
nextIndex in interface java.util.ListIterator
Returns:
a value of type int

previousIndex

public int previousIndex()
Describe previousIndex method here.
Specified by:
previousIndex in interface java.util.ListIterator
Returns:
a value of type int

position

public Position position()
Describe position method here.
Specified by:
position in interface TreeIterator
Returns:
a value of type Position

produceNext

public abstract java.lang.Object produceNext()
Describe produceNext method here.
Returns:
a value of type Object

produceLeft

public abstract java.lang.Object produceLeft()
Describe produceLeft method here.
Returns:
a value of type Object

produceRight

public abstract java.lang.Object produceRight()
Describe produceRight method here.
Returns:
a value of type Object

externalView

public abstract java.lang.Object externalView(java.lang.Object o)
Describe externalView method here.
Parameters:
o - a value of type Object
Returns:
a value of type Object