|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.common.collect.UnmodifiableIterator<INode>
org.eclipse.xtext.nodemodel.util.NodeTreeIterator
public class NodeTreeIterator
| Constructor Summary | |
|---|---|
NodeTreeIterator(INode root)
|
|
| Method Summary | |
|---|---|
protected void |
afterAdvance()
|
boolean |
hasNext()
|
boolean |
hasPrevious()
Returns true if this bidi iterator has more elements when traversing in the reverse direction. |
INode |
next()
Intermixed calls to BidiTreeIterator.next() and BidiTreeIterator.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. |
INode |
previous()
Returns the previous element. |
void |
prune()
|
| Methods inherited from class com.google.common.collect.UnmodifiableIterator |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
|---|
remove |
| Constructor Detail |
|---|
public NodeTreeIterator(INode root)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<INode>public INode next()
BidiTreeIteratorIntermixed calls to BidiTreeIterator.next() and BidiTreeIterator.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<INode>next in interface BidiTreeIterator<INode>protected void afterAdvance()
public boolean hasPrevious()
BidiIterator
hasPrevious in interface BidiIterator<INode>public INode previous()
BidiTreeIteratorIntermixed calls to BidiTreeIterator.next() and BidiTreeIterator.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<INode>previous in interface BidiTreeIterator<INode>public void prune()
prune in interface org.eclipse.emf.common.util.TreeIterator<INode>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||