|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.dtm.ref.DTMAxisIteratorBase org.apache.xalan.xsltc.dom.CachedNodeListIterator
public final class CachedNodeListIterator
CachedNodeListIterator is used for select expressions in a variable or parameter. This iterator caches all nodes in an IntegerArray. Its cloneIterator() method is overridden to return an object of ClonedNodeListIterator.
Field Summary | |
---|---|
private int |
_index
|
private boolean |
_isEnded
|
private IntegerArray |
_nodes
|
private int |
_numCachedNodes
|
private DTMAxisIterator |
_source
Source for this iterator. |
Fields inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase |
---|
_includeSelf, _isRestartable, _last, _markedNode, _position, _startNode |
Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator |
---|
END |
Constructor Summary | |
---|---|
CachedNodeListIterator(DTMAxisIterator source)
|
Method Summary | |
---|---|
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator. |
int |
getNode(int index)
|
int |
getNodeByPosition(int pos)
Return the node at the given position. |
int |
getPosition()
|
void |
gotoMark()
Restores the current node remembered by setMark(). |
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. |
Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase |
---|
getAxis, getLast, getStartNode, includeSelf, isDocOrdered, isReverse, resetPosition, returnNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DTMAxisIterator _source
private IntegerArray _nodes
private int _numCachedNodes
private int _index
private boolean _isEnded
Constructor Detail |
---|
public CachedNodeListIterator(DTMAxisIterator source)
Method Detail |
---|
public void setRestartable(boolean isRestartable)
DTMAxisIterator
setRestartable
in interface DTMAxisIterator
setRestartable
in class DTMAxisIteratorBase
public DTMAxisIterator setStartNode(int node)
DTMAxisIterator
node
- Sets the root of the iteration.
public int next()
DTMAxisIterator
public int getPosition()
getPosition
in interface DTMAxisIterator
getPosition
in class DTMAxisIteratorBase
public int getNodeByPosition(int pos)
DTMAxisIteratorBase
getNodeByPosition
in interface DTMAxisIterator
getNodeByPosition
in class DTMAxisIteratorBase
pos
- The position
public int getNode(int index)
public DTMAxisIterator cloneIterator()
DTMAxisIteratorBase
cloneIterator
in interface DTMAxisIterator
cloneIterator
in class DTMAxisIteratorBase
public DTMAxisIterator reset()
DTMAxisIterator
reset
in interface DTMAxisIterator
reset
in class DTMAxisIteratorBase
public void setMark()
DTMAxisIterator
public void gotoMark()
DTMAxisIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |