public static class Navigator.AxisFilter extends java.lang.Object implements AxisIterator
SequenceIterator.Property
Constructor and Description |
---|
AxisFilter(AxisIterator base,
java.util.function.Predicate<? super NodeInfo> test)
Construct a AxisFilter
|
Modifier and Type | Method and Description |
---|---|
NodeInfo |
next()
Get the next item in the sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asIterator, forEachNode
forEach, toList
close, forEachOrFail, getProperties, materialize
public AxisFilter(AxisIterator base, java.util.function.Predicate<? super NodeInfo> test)
base
- the underlying iterator that returns all the nodes on
a required axis. This must not be an atomizing iterator!test
- a NodeTest that is applied to each node returned by the
underlying AxisIterator; only those nodes that pass the NodeTest are
returned by the AxisFilterpublic NodeInfo next()
UnfailingIterator
next
in interface SequenceIterator
next
in interface AxisIterator
next
in interface UnfailingIterator
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.