|
FORESTER 1.7 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--forester.tree.PostorderTreeIterator
Constructor Summary | |
PostorderTreeIterator(Tree t)
Constructor which creates a postorder 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 PostorderTreeIterator(Tree t) throws java.lang.Exception
t
- Tree for which a Iterator is to be constructed.Method Detail |
public void first()
first
in interface Iterator
public void next()
next
in interface Iterator
public boolean isDone()
isDone
in interface Iterator
public Node currentNode()
currentNode
in interface Iterator
|
FORESTER 1.7 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |