|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BidiTreeIterator<T>
A bidirectional
tree iterator
.
It can be used in both directions and even alternating.
Method Summary | |
---|---|
T |
next()
|
T |
previous()
Returns the previous element. |
Methods inherited from interface org.eclipse.emf.common.util.TreeIterator |
---|
prune |
Methods inherited from interface java.util.Iterator |
---|
hasNext, remove |
Methods inherited from interface org.eclipse.xtext.nodemodel.BidiIterator |
---|
hasPrevious |
Methods inherited from interface java.util.Iterator |
---|
hasNext, remove |
Method Detail |
---|
T next()
Intermixed calls to next()
and previous()
may not lead
to the very same element since the iterator does not return the parent element
when its done with its children but the next sibling of the parent.
next
in interface java.util.Iterator<T>
java.util.NoSuchElementException
- iteration has no next element.T previous()
Intermixed calls to next()
and previous()
may not lead
to the very same element since the iterator does not return the parent element
when its done with its children but the next sibling of the parent.
previous
in interface BidiIterator<T>
java.util.NoSuchElementException
- iteration has no previous element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |