net.sf.saxon.expr

Class IntersectionEnumeration

public class IntersectionEnumeration extends Object implements SequenceIterator

An enumeration representing a nodeset that is an intersection of two other NodeSets. This implements the XPath 2.0 operator "intersect".
Constructor Summary
IntersectionEnumeration(SequenceIterator p1, SequenceIterator p2, NodeOrderComparer comparer)
Form an enumeration of the intersection of the nodes in two nodesets
Method Summary
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Constructor Detail

IntersectionEnumeration

public IntersectionEnumeration(SequenceIterator p1, SequenceIterator p2, NodeOrderComparer comparer)
Form an enumeration of the intersection of the nodes in two nodesets

Parameters: p1 the first operand: must be in document order p2 the second operand: must be in document order comparer Comparer to be used for putting nodes in document order

Method Detail

current

public Item current()

getAnother

public SequenceIterator getAnother()

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.

Returns: the properties of this iterator. This will be some combination of properties such as SequenceIterator.GROUNDED, SequenceIterator.LAST_POSITION_FINDER, and SequenceIterator.LOOKAHEAD. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.

next

public Item next()

position

public int position()