com.icl.saxon.expr

Class IntersectionEnumeration

public class IntersectionEnumeration extends Object implements NodeEnumeration

An enumeration representing a nodeset that is an intersection of two other NodeSets. There is currently no operator in XPath to create such an expression, but it is used by the extension function intersection(). The code is derived from the analagous UnionEnumeration, an inner class of UnionExpression.
Constructor Summary
IntersectionEnumeration(NodeEnumeration p1, NodeEnumeration p2, Controller controller)
Form an enumeration of the intersection of the nodes in two nodesets
Method Summary
booleanhasMoreElements()
booleanisPeer()
booleanisReverseSorted()
booleanisSorted()
NodeInfonextElement()

Constructor Detail

IntersectionEnumeration

public IntersectionEnumeration(NodeEnumeration p1, NodeEnumeration p2, Controller controller)
Form an enumeration of the intersection of the nodes in two nodesets

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

Method Detail

hasMoreElements

public boolean hasMoreElements()

isPeer

public boolean isPeer()

isReverseSorted

public boolean isReverseSorted()

isSorted

public boolean isSorted()

nextElement

public NodeInfo nextElement()