|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The inner interface Actions
describes how a
TreeTraversal
should act during the traversal.
Method Summary | |
void |
atEntry(TreeIterator ti)
Called once at the beginning of the traversal, before visiting the first entry in the tree. |
void |
atExit(TreeIterator ti)
Called once at the end of the traversal, after visiting the last entry in the tree. |
void |
atLeaf(TreeIterator ti)
Called once at each leaf entry, after calling atNext or
atRight for this node. |
void |
atLeft(TreeIterator ti)
Called always after executing left on the
TreeIterator . |
void |
atNext(TreeIterator ti)
Called always after executing next on the
TreeIterator . |
void |
atPrevious(TreeIterator ti)
Called always after executing previous on the
TreeIterator . |
void |
atRight(TreeIterator ti)
Called always after executing right on the
TreeIterator . |
void |
atRoot(TreeIterator ti)
Called once at the root entry, before calling atNext for this
node. |
Method Detail |
public void atEntry(TreeIterator ti)
ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entrypublic void atExit(TreeIterator ti)
ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entrypublic void atRoot(TreeIterator ti)
atNext
for this
node.ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entrypublic void atLeaf(TreeIterator ti)
atNext
or
atRight
for this node.ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entrypublic void atNext(TreeIterator ti)
next
on the
TreeIterator
.ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entrypublic void atPrevious(TreeIterator ti)
previous
on the
TreeIterator
.ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entrypublic void atLeft(TreeIterator ti)
left
on the
TreeIterator
.ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entrypublic void atRight(TreeIterator ti)
right
on the
TreeIterator
.ti
- the TreeIterator
being traversed, with 'ti.current()'
returning the current entry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |