com.icl.saxon.expr
public class FilterEnumerator extends Object implements NodeEnumeration
Modifier and Type | Field and Description |
---|---|
(package private) int |
max |
(package private) int |
min |
Constructor and Description |
---|
FilterEnumerator(NodeEnumeration base,
Expression filter,
Context context,
boolean finishAfterReject)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
Test whether there are any more nodes available in the enumeration
|
boolean |
isPeer()
Determine whether the nodes are guaranteed to be peers
|
boolean |
isReverseSorted()
Determine whether the nodes returned by this enumeration are known to be in
reverse document order.
|
boolean |
isSorted()
Determine whether the nodes are guaranteed to be in document order
|
NodeInfo |
nextElement()
Get the next node if there is one
|
public FilterEnumerator(NodeEnumeration base, Expression filter, Context context, boolean finishAfterReject) throws XPathException
base
- A node-set expression denoting the absolute or relative set of nodes from which the
navigation path should start.filter
- The expression defining the filter predicatecontext
- The context in which the expression is being evaluatedfinishAfterReject:
- terminate enumeration on first failureXPathException
public boolean hasMoreElements()
hasMoreElements
in interface NodeEnumeration
public NodeInfo nextElement() throws XPathException
nextElement
in interface NodeEnumeration
XPathException
public boolean isSorted()
isSorted
in interface NodeEnumeration
public boolean isReverseSorted()
NodeEnumeration
isReverseSorted
in interface NodeEnumeration
public boolean isPeer()
isPeer
in interface NodeEnumeration