Package org.apache.xalan.xsltc.dom
Class MultiValuedNodeHeapIterator.HeapNode
java.lang.Object
org.apache.xalan.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- MultiValuedNodeHeapIterator
An abstract representation of a set of nodes that will be retrieved in
document order.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a deep copy of thisMultiValuedNodeHeapIterator.HeapNode.voidgotoMark()Restores the current node remembered bysetMark().abstract booleanPerforms a comparison of the two heap nodesabstract MultiValuedNodeHeapIterator.HeapNodereset()Reset the heap node back to its beginning.voidsetMark()Remembers the current node for the next call togotoMark().abstract MultiValuedNodeHeapIterator.HeapNodesetStartNode(int node) Sets context with respect to which this heap node is evaluated.abstract intstep()Advance to the next node represented by thisMultiValuedNodeHeapIterator.HeapNode
-
Constructor Details
-
HeapNode
public HeapNode()
-
-
Method Details
-
step
public abstract int step()Advance to the next node represented by thisMultiValuedNodeHeapIterator.HeapNode- Returns:
- the next DTM node.
-
cloneHeapNode
Creates a deep copy of thisMultiValuedNodeHeapIterator.HeapNode. The clone is not reset from the current position of the original.- Returns:
- the cloned heap node
-
setMark
public void setMark()Remembers the current node for the next call togotoMark(). -
gotoMark
public void gotoMark()Restores the current node remembered bysetMark(). -
isLessThan
Performs a comparison of the two heap nodes- Parameters:
heapNode- the heap node against which to compare- Returns:
trueif and only if the current node for this heap node is before the current node of the argument heap node in document order.
-
setStartNode
Sets context with respect to which this heap node is evaluated.- Parameters:
node- The new context node- Returns:
- a
MultiValuedNodeHeapIterator.HeapNodewhich may or may not be the same as thisHeapNode.
-
reset
Reset the heap node back to its beginning.- Returns:
- a
MultiValuedNodeHeapIterator.HeapNodewhich may or may not be the same as thisHeapNode.
-