public abstract class OMAbstractIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier and Type | Field and Description |
|---|---|
private OMNode |
currentNode |
private OMContainer |
currentParent
The parent of the current node.
|
private boolean |
nextCalled |
private OMNode |
nextNode |
private boolean |
noMoreNodes |
| Constructor and Description |
|---|
OMAbstractIterator(OMNode firstNode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OMNode |
getNextNode(OMNode currentNode)
Get the next node.
|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
private OMNode currentNode
private OMContainer currentParent
private OMNode nextNode
private boolean noMoreNodes
private boolean nextCalled
public OMAbstractIterator(OMNode firstNode)
protected abstract OMNode getNextNode(OMNode currentNode)
currentNode - the predecessor of the node to retrievepublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator