|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode org.apache.xalan.xsltc.dom.KeyIndex.KeyIndexIterator.KeyIndexHeapNode
protected class KeyIndex.KeyIndexIterator.KeyIndexHeapNode
Represents the DTM nodes retrieved for one key value or one string
argument to id
for use as one heap node in a
MultiValuedNodeHeapIterator
.
Field Summary | |
---|---|
private int |
_markPosition
Marked position. |
private IntegerArray |
_nodes
IntegerArray of DTM nodes retrieved for one key value. |
private int |
_position
Position in _nodes array of next node to return from
this heap node. |
Fields inherited from class org.apache.xalan.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode |
---|
_isStartSet, _markedNode, _node |
Constructor Summary | |
---|---|
KeyIndex.KeyIndexIterator.KeyIndexHeapNode(IntegerArray nodes)
Create a heap node representing DTM nodes retrieved for one key value in a reference to the key function
or string argument to the id function. |
Method Summary | |
---|---|
MultiValuedNodeHeapIterator.HeapNode |
cloneHeapNode()
Creates a deep copy of this KeyIndex.KeyIndexIterator.KeyIndexHeapNode . |
void |
gotoMark()
Restores the current node remembered by setMark() . |
boolean |
isLessThan(MultiValuedNodeHeapIterator.HeapNode heapNode)
Performs a comparison of the two heap nodes |
MultiValuedNodeHeapIterator.HeapNode |
reset()
Reset the heap node back to its beginning. |
void |
setMark()
Remembers the current node for the next call to gotoMark() . |
MultiValuedNodeHeapIterator.HeapNode |
setStartNode(int node)
Sets context with respect to which this heap node is evaluated. |
int |
step()
Advance to the next node represented by this KeyIndex.KeyIndexIterator.KeyIndexHeapNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IntegerArray _nodes
IntegerArray
of DTM nodes retrieved for one key value.
Must contain no duplicates and be stored in document order.
private int _position
_nodes
array of next node to return from
this heap node.
private int _markPosition
setMark()
and
gotoMark()
Constructor Detail |
---|
KeyIndex.KeyIndexIterator.KeyIndexHeapNode(IntegerArray nodes)
key
function
or string argument to the id
function.
Method Detail |
---|
public int step()
KeyIndex.KeyIndexIterator.KeyIndexHeapNode
step
in class MultiValuedNodeHeapIterator.HeapNode
public MultiValuedNodeHeapIterator.HeapNode cloneHeapNode()
KeyIndex.KeyIndexIterator.KeyIndexHeapNode
. The clone is not
reset from the current position of the original.
cloneHeapNode
in class MultiValuedNodeHeapIterator.HeapNode
public void setMark()
gotoMark()
.
setMark
in class MultiValuedNodeHeapIterator.HeapNode
public void gotoMark()
setMark()
.
gotoMark
in class MultiValuedNodeHeapIterator.HeapNode
public boolean isLessThan(MultiValuedNodeHeapIterator.HeapNode heapNode)
isLessThan
in class MultiValuedNodeHeapIterator.HeapNode
heapNode
- the heap node against which to compare
true
if and only if the current node for
this heap node is before the current node of the
argument heap node in document order.public MultiValuedNodeHeapIterator.HeapNode setStartNode(int node)
Sets context with respect to which this heap node is evaluated.
This has no real effect on this kind of heap node. Instead,
the KeyIndex.KeyIndexIterator.setStartNode(int)
method should
create new instances of this class to represent the effect of
changing the context.
setStartNode
in class MultiValuedNodeHeapIterator.HeapNode
node
- The new context node
MultiValuedNodeHeapIterator.HeapNode
which may or may not be the same as
this HeapNode
.public MultiValuedNodeHeapIterator.HeapNode reset()
reset
in class MultiValuedNodeHeapIterator.HeapNode
MultiValuedNodeHeapIterator.HeapNode
which may or may not be the same as
this HeapNode
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |