| 
 | FORESTER 1.92 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--forester.tree.PreorderTreeIterator
| Constructor Summary | |
| PreorderTreeIterator(Tree t)Constructor which creates a preorder Iterator for Tree t. | |
| Method Summary | |
|  Node | currentNode()Returns the current Node, unless all Nodes have been visited (isDone() returns true), in which case it returns null. | 
|  void | first()Resets the Iterator. | 
|  boolean | isDone()Returns true if all Nodes have been visited. | 
|  void | next()Advances the Iterator by one. | 
| Methods inherited from class java.lang.Object | 
|  | 
| Constructor Detail | 
public PreorderTreeIterator(Tree t)
                     throws java.lang.Exception
t - Tree for which a Iterator is to be constructed.| Method Detail | 
public void first()
first in interface Iteratorpublic void next()
next in interface Iteratorpublic boolean isDone()
isDone in interface Iteratorpublic Node currentNode()
currentNode in interface Iterator| 
 | FORESTER 1.92 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||