Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xml.dtm.ref.DTMAxisIteratorBase
org.apache.xalan.xsltc.dom.MultiValuedNodeHeapIterator
org.apache.xalan.xsltc.dom.KeyIndex.KeyIndexIterator
public class KeyIndex.KeyIndexIterator
extends MultiValuedNodeHeapIterator
key
function or the XPath id
function.
Nested Class Summary |
Nested classes/interfaces inherited from class org.apache.xalan.xsltc.dom.MultiValuedNodeHeapIterator | |
MultiValuedNodeHeapIterator.HeapNode |
Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator | |
END |
Method Summary | |
int |
|
int |
|
int |
|
DTMAxisIterator |
|
DTMAxisIterator |
|
Methods inherited from class org.apache.xalan.xsltc.dom.MultiValuedNodeHeapIterator | |
cloneIterator , gotoMark , next , reset , setMark , setStartNode |
Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase | |
cloneIterator , getAxis , getLast , getNodeByPosition , getPosition , getStartNode , includeSelf , isDocOrdered , isReverse , reset , setRestartable |
public int getLast()
Returns the number of nodes in this iterator.
- Specified by:
- getLast in interface DTMAxisIterator
- Overrides:
- getLast in interface DTMAxisIteratorBase
- Returns:
- the number of nodes
public int getNodeByPosition(int position)
Return the node at the given position.
- Specified by:
- getNodeByPosition in interface DTMAxisIterator
- Overrides:
- getNodeByPosition in interface DTMAxisIteratorBase
- Parameters:
position
- The position
- Returns:
- The node at the given position.
public int next()
Get the next node in the iteration.
- Specified by:
- next in interface DTMAxisIterator
- Overrides:
- next in interface MultiValuedNodeHeapIterator
- Returns:
- The next node handle in the iteration, or END.
public DTMAxisIterator reset()
Resets the iterator to the last start node.
- Specified by:
- reset in interface DTMAxisIterator
- Overrides:
- reset in interface MultiValuedNodeHeapIterator
- Returns:
- A DTMAxisIterator, which may or may not be the same as this iterator.
public DTMAxisIterator setStartNode(int node)
Set context node for the iterator. This will cause the iterator to reset itself, reevaluate arguments to the function, look up nodes in the input and reinitialize its internal heap.
- Specified by:
- setStartNode in interface DTMAxisIterator
- Overrides:
- setStartNode in interface MultiValuedNodeHeapIterator
- Parameters:
node
- the context node
- Returns:
- A
DTMAxisIterator
set to the start of the iteration.