public interface NodeIterator extends Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
END |
Modifier and Type | Method and Description |
---|---|
NodeIterator |
cloneIterator()
Returns a deep copy of this iterator.
|
int |
getLast()
Returns the number of elements in this iterator.
|
int |
getPosition()
Returns the position of the current node in the set.
|
void |
gotoMark()
Restores the current node remembered by setMark().
|
boolean |
isReverse()
True if this iterator has a reversed axis.
|
int |
next()
Callers should not call next() after it returns END.
|
NodeIterator |
reset()
Resets the iterator to the last start node.
|
void |
setMark()
Remembers the current node for the next call to gotoMark().
|
void |
setRestartable(boolean isRestartable)
Prevents or allows iterator restarts.
|
NodeIterator |
setStartNode(int node)
Set start to END should 'close' the iterator,
i.e.
|
static final int END
int next()
NodeIterator reset()
int getLast()
int getPosition()
void setMark()
void gotoMark()
NodeIterator setStartNode(int node)
boolean isReverse()
NodeIterator cloneIterator()
void setRestartable(boolean isRestartable)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.