|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icl.saxon.expr.FilterEnumerator
A FilterEnumerator filters an input NodeEnumeration using a filter expression. The complication is that on request, it must determine the value of the last() position, which requires a lookahead.
| Constructor Summary | |
FilterEnumerator(NodeEnumeration base,
Expression filter,
Context context,
boolean finishAfterReject)
Constructor |
|
| Method Summary | |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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 evaluated| Method Detail |
public boolean hasMoreElements()
hasMoreElements in interface NodeEnumeration
public NodeInfo nextElement()
throws XPathException
nextElement in interface NodeEnumerationXPathExceptionpublic boolean isSorted()
isSorted in interface NodeEnumerationpublic boolean isReverseSorted()
NodeEnumeration
isReverseSorted in interface NodeEnumerationpublic boolean isPeer()
isPeer in interface NodeEnumeration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||