|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.parsetree.reconstr.impl.NodeIterator
public class NodeIterator
An iterator that can traverse a parse tree in forward and backward direction starting from any element in the tree. Also allows pruning of nodes.
Constructor Summary | |
---|---|
NodeIterator(INode node)
|
Method Summary | |
---|---|
protected INode |
findNextSibling(INode node)
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
INode |
next()
|
INode |
previous()
|
void |
prune()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeIterator(INode node)
Method Detail |
---|
protected INode findNextSibling(INode node)
public boolean hasNext()
hasNext
in interface java.util.Iterator<INode>
public INode next()
next
in interface java.util.Iterator<INode>
public boolean hasPrevious()
public INode previous()
public void remove()
remove
in interface java.util.Iterator<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 |