APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.dom

public Class KeyIndex

extends DTMAxisIteratorBase
Class Inheritance
Imports
com.sun.org.apache.xalan.internal.xsltc.DOM, .DOMEnhancedForDTM, com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary, com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray, com.sun.org.apache.xml.internal.dtm.Axis, .DTM, .DTMAxisIterator, com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase, java.util.HashMap, .Map, .StringTokenizer

Stores mappings of key values or IDs to DTM nodes. Use of an instance of this class as a DTMAxisIterator is deprecated.
Authors
Morten Jorgensen, Santiago Pericas-Geertsen

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
KeyIndex.KeyIndexIterator

An iterator representing the result of a reference to either the XSLT key function or the XPath id function.

Field Summary

Modifier and TypeField and Description
private int
_currentDocumentNode

The document node currently being processed.

private DOM
_dom

The XSLTC DOM object if this KeyIndex is being used to implement the id() function.

private DOMEnhancedForDTM
private Map<String, IntegerArray>
_index

A mapping between values and nodesets for the current document.

private int
_markedPosition

Store position after call to setMark()

private IntegerArray
_nodes

The node set associated to the current value passed to lookupKey();

private Map<Integer, Map<String, IntegerArray>>
_rootToIndexMap

A mapping from a document node to the mapping between values and nodesets

private static final IntegerArray
EMPTY_NODES

Used to represent an empty node set.

Inherited from com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase:
_includeSelf_isRestartable_last_markedNode_position_startNode

Constructor Summary

AccessConstructor and Description
public
KeyIndex(int dummy)

Method Summary

Modifier and TypeMethod and Description
public void
add(String value, int node, int rootNode)

Adds a node to the node list for a given value.

public DTMAxisIterator
public int

Returns:

1 if the context node is in the set of nodes returned by the reference to the id function; 0, otherwise
containsID
(int
The context node
node
,
Object
The argument to the id function
value
)

Given a context node and the argument to the XPath id function, checks whether the context node is in the set of nodes that results from that reference to the id function.

public int

Returns:

1 if and only if the context node is in the set of nodes returned by the reference to the key function; 0, otherwise
containsKey
(int
The context node
node
,
Object
The second argument to the key function
value
)

Given a context node and the second argument to the XSLT key function, checks whether the context node is in the set of nodes that results from that reference to the key function.

public IntegerArray

Returns:

A IntegerArray representing the Node whose id is the given value.
getDOMNodeById
(String
The id
id
)

Return an IntegerArray for the DOM Node which has the given id.

public KeyIndex.KeyIndexIterator
getKeyIndexIterator(Object
A string or iterator representing the key values or id references
keyValue
,
boolean
A boolean indicating whether the iterator is being created for a reference key or id
isKeyCall
)

Create a KeyIndexIterator that iterates over the nodes that result from a reference to the XSLT key function or XPath id function.

public KeyIndex.KeyIndexIterator
getKeyIndexIterator(String
A string representing the key values or id references
keyValue
,
boolean
A boolean indicating whether the iterator is being created for a reference key or id
isKeyCall
)

Create a KeyIndexIterator that iterates over the nodes that result from a reference to the XSLT key function or XPath id function.

public KeyIndex.KeyIndexIterator
getKeyIndexIterator(DTMAxisIterator
An iterator representing the key values or id references
keyValue
,
boolean
A boolean indicating whether the iterator is being created for a reference key or id
isKeyCall
)

Create a KeyIndexIterator that iterates over the nodes that result from a reference to the XSLT key function or XPath id function.

public int
public int
public int
getStartNode()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getStartNode.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getStartNode.

Deprecated

Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

public void
gotoMark()

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.gotoMark.

Deprecated

Restores the current node remembered by setMark().

public boolean
public void
lookupId(Object value)
Deprecated

This method must be called by the code generated by the id() function prior to returning the node iterator.

public void
lookupKey(Object value)
Deprecated

This method must be called by the code generated by the key() function prior to returning the node iterator.

public void
merge(KeyIndex other)
Deprecated

Merge the current value's nodeset set by lookupKey() with _nodes.

public int
next()

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.next.

Deprecated

Callers should not call next() after it returns END.

public DTMAxisIterator
public void
setDom(DOM dom, int node)

public void
setMark()

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setMark.

Deprecated

Remembers the current node for the next call to gotoMark().

public void
public DTMAxisIterator
setStartNode(int start)

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setStartNode.

Deprecated

Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Inherited from com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase:
getAxisgetNodeByPositionincludeSelfisDocOrderedresetPositionreturnNode

Field Detail

_currentDocumentNodeback to summary
private int _currentDocumentNode

The document node currently being processed. Used only while building keys.

_domback to summary
private DOM _dom

The XSLTC DOM object if this KeyIndex is being used to implement the id() function.

_enhancedDOMback to summary
private DOMEnhancedForDTM _enhancedDOM
_indexback to summary
private Map<String, IntegerArray> _index

A mapping between values and nodesets for the current document. Used only while building keys.

_markedPositionback to summary
private int _markedPosition

Store position after call to setMark()

_nodesback to summary
private IntegerArray _nodes

The node set associated to the current value passed to lookupKey();

_rootToIndexMapback to summary
private Map<Integer, Map<String, IntegerArray>> _rootToIndexMap

A mapping from a document node to the mapping between values and nodesets

EMPTY_NODESback to summary
private static final IntegerArray EMPTY_NODES

Used to represent an empty node set.

Constructor Detail

KeyIndexback to summary
public KeyIndex(int dummy)

Method Detail

addback to summary
public void add(String value, int node, int rootNode)

Adds a node to the node list for a given value. Nodes will always be added in document order.

cloneIteratorback to summary
public DTMAxisIterator cloneIterator()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.cloneIterator.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.cloneIterator.

Deprecated

Returns a deep copy of this iterator.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
containsIDback to summary
public int containsID(int node, Object value)

Given a context node and the argument to the XPath id function, checks whether the context node is in the set of nodes that results from that reference to the id function. This is used in the implementation of id patterns.

Parameters
node:int

The context node

value:Object

The argument to the id function

Returns:int

1 if the context node is in the set of nodes returned by the reference to the id function; 0, otherwise

containsKeyback to summary
public int containsKey(int node, Object value)

Given a context node and the second argument to the XSLT key function, checks whether the context node is in the set of nodes that results from that reference to the key function. This is used in the implementation of key patterns.

This particular KeyIndex object is the result evaluating the first argument to the key function, so it's not taken into any further account.

Parameters
node:int

The context node

value:Object

The second argument to the key function

Returns:int

1 if and only if the context node is in the set of nodes returned by the reference to the key function; 0, otherwise

getDOMNodeByIdback to summary
public IntegerArray getDOMNodeById(String id)

Return an IntegerArray for the DOM Node which has the given id.

Parameters
id:String

The id

Returns:IntegerArray

A IntegerArray representing the Node whose id is the given value.

getKeyIndexIteratorback to summary
public KeyIndex.KeyIndexIterator getKeyIndexIterator(Object keyValue, boolean isKeyCall)

Create a KeyIndexIterator that iterates over the nodes that result from a reference to the XSLT key function or XPath id function.

Parameters
keyValue:Object

A string or iterator representing the key values or id references

isKeyCall:boolean

A boolean indicating whether the iterator is being created for a reference key or id

getKeyIndexIteratorback to summary
public KeyIndex.KeyIndexIterator getKeyIndexIterator(String keyValue, boolean isKeyCall)

Create a KeyIndexIterator that iterates over the nodes that result from a reference to the XSLT key function or XPath id function.

Parameters
keyValue:String

A string representing the key values or id references

isKeyCall:boolean

A boolean indicating whether the iterator is being created for a reference key or id

getKeyIndexIteratorback to summary
public KeyIndex.KeyIndexIterator getKeyIndexIterator(DTMAxisIterator keyValue, boolean isKeyCall)

Create a KeyIndexIterator that iterates over the nodes that result from a reference to the XSLT key function or XPath id function.

Parameters
keyValue:DTMAxisIterator

An iterator representing the key values or id references

isKeyCall:boolean

A boolean indicating whether the iterator is being created for a reference key or id

getLastback to summary
public int getLast()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getLast.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getLast.

Deprecated

Returns the number of elements in this iterator.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
getPositionback to summary
public int getPosition()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getPosition.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getPosition.

Deprecated

Returns the position of the current node in the set.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
getStartNodeback to summary
public int getStartNode()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getStartNode.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getStartNode.

Deprecated

Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
gotoMarkback to summary
public void gotoMark()

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.gotoMark.

Deprecated

Restores the current node remembered by setMark().

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
isReverseback to summary
public boolean isReverse()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.isReverse.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.isReverse.

Deprecated

True if this iterator has a reversed axis.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
lookupIdback to summary
public void lookupId(Object value)

Deprecated

This method must be called by the code generated by the id() function prior to returning the node iterator. The lookup code for key() and id() differ in the way the lookup value can be whitespace separated list of tokens for the id() function, but a single string for the key() function.

Annotations
@Deprecated
lookupKeyback to summary
public void lookupKey(Object value)

Deprecated

This method must be called by the code generated by the key() function prior to returning the node iterator.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
mergeback to summary
public void merge(KeyIndex other)

Deprecated

Merge the current value's nodeset set by lookupKey() with _nodes.

Annotations
@Deprecated
nextback to summary
public int next()

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.next.

Deprecated

Callers should not call next() after it returns END.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
resetback to summary
public DTMAxisIterator reset()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.reset.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.reset.

Deprecated

Resets the iterator to the last start node.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
setDomback to summary
public void setDom(DOM dom, int node)
setMarkback to summary
public void setMark()

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setMark.

Deprecated

Remembers the current node for the next call to gotoMark().

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
setRestartableback to summary
public void setRestartable(boolean flag)

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.setRestartable.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setRestartable.

Doc from com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setRestartable.

Set if restartable.

setStartNodeback to summary
public DTMAxisIterator setStartNode(int start)

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setStartNode.

Deprecated

Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Use of an instance of this class as a DTMAxisIterator is deprecated.

Annotations
@Deprecated
com.sun.org.apache.xalan.internal.xsltc.dom back to summary

public Class KeyIndex.KeyIndexIterator

extends MultiValuedNodeHeapIterator
Class Inheritance

An iterator representing the result of a reference to either the XSLT key function or the XPath id function.

Nested and Inner Type Summary

Modifier and TypeClass and Description
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

Modifier and TypeField and Description
private boolean
_isKeyIterator

Indicates whether this object represents the result of a reference to the key function (true) or the id function (false).

private String
_keyValue

This field contains the iterator representing a non-node-set key value argument to the key function or a non-node-set argument to the id function.

private DTMAxisIterator
_keyValueIterator

This field contains the iterator representing a node set key value argument to the key function or a node set argument to the id function.

private IntegerArray
_nodes

A reference to the key function that only has one key value or to the id function that has only one string argument can be optimized to ignore the multi-valued heap.

Constructor Summary

AccessConstructor and Description
pack-priv
KeyIndexIterator(String
the argument to key or id cast to a String
keyValue
,
boolean
indicates whether the constructed iterator represents a reference to key or id.
isKeyIterator
)

Constructor used when the argument to key or id is not a node set.

pack-priv
KeyIndexIterator(DTMAxisIterator
the argument to key or id
keyValues
,
boolean
indicates whether the constructed iterator represents a reference to key or id.
isKeyIterator
)

Constructor used when the argument to key or id is a node set.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of nodes
getLast
()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getLast.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getLast.

Returns the number of nodes in this iterator.

public int

Returns:

The node at the given position.
getNodeByPosition
(int
The position
position
)

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getNodeByPosition.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getNodeByPosition.

Return the node at the given position.

protected void
init()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.init.

Evaluate the reference to the key or id function with the context specified by setStartNode(int) and set up this iterator to iterate over the DTM nodes that are to be returned.

protected IntegerArray

Returns:

an IntegerArray of the resulting nodes
lookupNodes
(int
The root node of the document containing the context node
root
,
String
The key value of id string argument value
keyValue
)

Retrieve nodes for a particular key value or a particular id argument value.

public int

Returns:

The next node handle in the iteration, or END.
next
()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.next.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.next.

Get the next node in the iteration.

public DTMAxisIterator

Returns:

A DTMAxisIterator, which may or may not be the same as this iterator.
reset
()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.reset.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.reset.

Resets the iterator to the last start node.

public DTMAxisIterator

Returns:

A DTMAxisIterator set to the start of the iteration.
setStartNode
(int
the context node
node
)

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.setStartNode.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setStartNode.

Set context node for the iterator.

Inherited from com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator:
addHeapNodecloneIteratorgotoMarksetMark

Field Detail

_isKeyIteratorback to summary
private boolean _isKeyIterator

Indicates whether this object represents the result of a reference to the key function (true) or the id function (false).

_keyValueback to summary
private String _keyValue

This field contains the iterator representing a non-node-set key value argument to the key function or a non-node-set argument to the id function.

Exactly one of this field and _keyValueIterator must be null.

_keyValueIteratorback to summary
private DTMAxisIterator _keyValueIterator

This field contains the iterator representing a node set key value argument to the key function or a node set argument to the id function.

Exactly one of this field and _keyValue must be null.

_nodesback to summary
private IntegerArray _nodes

A reference to the key function that only has one key value or to the id function that has only one string argument can be optimized to ignore the multi-valued heap. This field will be null otherwise.

Constructor Detail

KeyIndexIteratorback to summary
pack-priv KeyIndexIterator(String keyValue, boolean isKeyIterator)

Constructor used when the argument to key or id is not a node set.

Parameters
keyValue:String

the argument to key or id cast to a String

isKeyIterator:boolean

indicates whether the constructed iterator represents a reference to key or id.

KeyIndexIteratorback to summary
pack-priv KeyIndexIterator(DTMAxisIterator keyValues, boolean isKeyIterator)

Constructor used when the argument to key or id is a node set.

Parameters
keyValues:DTMAxisIterator

the argument to key or id

isKeyIterator:boolean

indicates whether the constructed iterator represents a reference to key or id.

Method Detail

getLastback to summary
public int getLast()

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getLast.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getLast.

Returns the number of nodes in this iterator.

Returns:int

the number of nodes

getNodeByPositionback to summary
public int getNodeByPosition(int position)

Overrides com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.getNodeByPosition.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.getNodeByPosition.

Return the node at the given position.

Parameters
position:int

The position

Returns:int

The node at the given position.

initback to summary
protected void init()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.init.

Evaluate the reference to the key or id function with the context specified by setStartNode(int) and set up this iterator to iterate over the DTM nodes that are to be returned.

lookupNodesback to summary
protected IntegerArray lookupNodes(int root, String keyValue)

Retrieve nodes for a particular key value or a particular id argument value.

Parameters
root:int

The root node of the document containing the context node

keyValue:String

The key value of id string argument value

Returns:IntegerArray

an IntegerArray of the resulting nodes

nextback to summary
public int next()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.next.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.next.

Get the next node in the iteration.

Returns:int

The next node handle in the iteration, or END.

resetback to summary
public DTMAxisIterator reset()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.reset.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.reset.

Resets the iterator to the last start node.

Returns:DTMAxisIterator

A DTMAxisIterator, which may or may not be the same as this iterator.

setStartNodeback to summary
public DTMAxisIterator setStartNode(int node)

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.setStartNode.

Implements com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.setStartNode.

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.

Parameters
node:int

the context node

Returns:DTMAxisIterator

A DTMAxisIterator set to the start of the iteration.

com.sun.org.apache.xalan.internal.xsltc.dom back to summary

protected Class KeyIndex.KeyIndexIterator.KeyIndexHeapNode

extends HeapNode
Class Inheritance

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

Modifier and TypeField and Description
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.

Inherited from com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode:
_isStartSet_markedNode_node

Constructor Summary

AccessConstructor and Description
pack-priv
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

Modifier and TypeMethod and Description
public MultiValuedNodeHeapIterator.HeapNode
public void
public boolean

Returns:

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.
isLessThan
(MultiValuedNodeHeapIterator.HeapNode
the heap node against which to compare
heapNode
)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.isLessThan.

Performs a comparison of the two heap nodes

public MultiValuedNodeHeapIterator.HeapNode
reset()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.reset.

Reset the heap node back to its beginning.

public void
public MultiValuedNodeHeapIterator.HeapNode
setStartNode(int node)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.setStartNode.

Sets context with respect to which this heap node is evaluated.

public int

Returns:

the next DTM node.
step
()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.step.

Advance to the next node represented by this HeapNode

Field Detail

_markPositionback to summary
private int _markPosition

Marked position. Used by setMark() and gotoMark()

_nodesback to summary
private IntegerArray _nodes

IntegerArray of DTM nodes retrieved for one key value. Must contain no duplicates and be stored in document order.

_positionback to summary
private int _position

Position in _nodes array of next node to return from this heap node.

Constructor Detail

KeyIndexHeapNodeback to summary
pack-priv 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 Detail

cloneHeapNodeback to summary
public MultiValuedNodeHeapIterator.HeapNode cloneHeapNode()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.cloneHeapNode.

Creates a deep copy of this HeapNode. The clone is not reset from the current position of the original.

Returns:MultiValuedNodeHeapIterator.HeapNode

the cloned heap node

gotoMarkback to summary
public void gotoMark()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.gotoMark.

Restores the current node remembered by setMark().

isLessThanback to summary
public boolean isLessThan(MultiValuedNodeHeapIterator.HeapNode heapNode)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.isLessThan.

Performs a comparison of the two heap nodes

Parameters
heapNode:MultiValuedNodeHeapIterator.HeapNode

the heap node against which to compare

Returns:boolean

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.

resetback to summary
public MultiValuedNodeHeapIterator.HeapNode reset()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.reset.

Reset the heap node back to its beginning.

setMarkback to summary
public void setMark()

Overrides com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.setMark.

Remembers the current node for the next call to gotoMark().

setStartNodeback to summary
public MultiValuedNodeHeapIterator.HeapNode setStartNode(int node)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.setStartNode.

Sets context with respect to which this heap node is evaluated.

This has no real effect on this kind of heap node. Instead, the KeyIndexIterator#setStartNode(int) method should create new instances of this class to represent the effect of changing the context.

stepback to summary
public int step()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.dom.MultiValuedNodeHeapIterator.HeapNode.step.

Advance to the next node represented by this HeapNode

Returns:int

the next DTM node.