public class ArrayNodeListIterator extends java.lang.Object implements DTMAxisIterator
END| Constructor and Description |
|---|
ArrayNodeListIterator(int[] nodes) |
| Modifier and Type | Method and Description |
|---|---|
DTMAxisIterator |
cloneIterator() |
int |
getLast() |
int |
getNodeByPosition(int position)
Return the node at the given position.
|
int |
getPosition() |
int |
getStartNode()
Get start to END should 'close' the iterator,
i.e. subsequent call to next() should return END.
|
void |
gotoMark()
Restores the current node remembered by setMark().
|
boolean |
isReverse() |
int |
next()
Get the next node in the iteration.
|
DTMAxisIterator |
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)
Set if restartable.
|
DTMAxisIterator |
setStartNode(int node)
Set start to END should 'close' the iterator,
i.e. subsequent call to next() should return END.
|
public int next()
DTMAxisIteratornext in interface DTMAxisIteratorpublic DTMAxisIterator reset()
DTMAxisIteratorreset in interface DTMAxisIteratorpublic int getLast()
getLast in interface DTMAxisIteratorpublic int getPosition()
getPosition in interface DTMAxisIteratorpublic void setMark()
DTMAxisIteratorsetMark in interface DTMAxisIteratorpublic void gotoMark()
DTMAxisIteratorgotoMark in interface DTMAxisIteratorpublic DTMAxisIterator setStartNode(int node)
DTMAxisIteratorsetStartNode in interface DTMAxisIteratornode - Sets the root of the iteration.public int getStartNode()
DTMAxisIteratorgetStartNode in interface DTMAxisIteratorpublic boolean isReverse()
isReverse in interface DTMAxisIteratorpublic DTMAxisIterator cloneIterator()
cloneIterator in interface DTMAxisIteratorpublic void setRestartable(boolean isRestartable)
DTMAxisIteratorsetRestartable in interface DTMAxisIteratorpublic int getNodeByPosition(int position)
DTMAxisIteratorgetNodeByPosition in interface DTMAxisIteratorposition - The positionCopyright © 2023 Apache XML Project. All Rights Reserved.