AROM-2_2_13

arom.kr.query.util
Class PathIterator

java.lang.Object
  |
  +--arom.kr.query.util.PathIterator
All Implemented Interfaces:
Iterator, ResetableIterator
Direct Known Subclasses:
AQResult

public class PathIterator
extends Object
implements ResetableIterator

this class implements Tree path Iterator. a path is a list of nodes leading from root to a leaf the next() method therefore returns an iterator over the nodes of a path.

Author:
Alain Viari

Constructor Summary
PathIterator(arom.kr.query.util.Tree t)
          standard constructor
 
Method Summary
 int countPath()
          Returns number of path.
 boolean hasNext()
          iterator.hasNext()
 Object next()
          iterator.next()
 void remove()
          unimplemented optional operation : remove
 void reset()
          reset internal iterator data structures this method is used to reset the iteration before starting a new one.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathIterator

public PathIterator(arom.kr.query.util.Tree t)
standard constructor

Parameters:
t - Description of the Parameter
Method Detail

hasNext

public boolean hasNext()
iterator.hasNext()

Specified by:
hasNext in interface Iterator
Returns:
Description of the Return Value

next

public Object next()
iterator.next()

Specified by:
next in interface Iterator
Returns:
Description of the Return Value

remove

public void remove()
unimplemented optional operation : remove

Specified by:
remove in interface Iterator

reset

public void reset()
reset internal iterator data structures this method is used to reset the iteration before starting a new one.

Specified by:
reset in interface ResetableIterator

countPath

public int countPath()
Returns number of path.

Returns:
int

AROM-2_2_13