java.lang.Cloneable
, DTMAxisIterator
public class ArrayNodeListIterator extends java.lang.Object implements DTMAxisIterator
END
Constructor | Description |
---|---|
ArrayNodeListIterator(int[] nodes) |
Modifier and Type | Method | 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()
DTMAxisIterator
next
in interface DTMAxisIterator
public DTMAxisIterator reset()
DTMAxisIterator
reset
in interface DTMAxisIterator
public int getLast()
getLast
in interface DTMAxisIterator
public int getPosition()
getPosition
in interface DTMAxisIterator
public void setMark()
DTMAxisIterator
setMark
in interface DTMAxisIterator
public void gotoMark()
DTMAxisIterator
gotoMark
in interface DTMAxisIterator
public DTMAxisIterator setStartNode(int node)
DTMAxisIterator
setStartNode
in interface DTMAxisIterator
node
- Sets the root of the iteration.public int getStartNode()
DTMAxisIterator
getStartNode
in interface DTMAxisIterator
public boolean isReverse()
isReverse
in interface DTMAxisIterator
public DTMAxisIterator cloneIterator()
cloneIterator
in interface DTMAxisIterator
public void setRestartable(boolean isRestartable)
DTMAxisIterator
setRestartable
in interface DTMAxisIterator
public int getNodeByPosition(int position)
DTMAxisIterator
getNodeByPosition
in interface DTMAxisIterator
position
- The positionCopyright ? 2014 Apache XML Project. All Rights Reserved.