|
forester v1.2 | |||||||
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 forester.tree.Iteratorpublic void next()
next in interface forester.tree.Iteratorpublic boolean isDone()
isDone in interface forester.tree.Iteratorpublic Node currentNode()
currentNode in interface forester.tree.Iterator
|
forester v1.2 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||