Class NodeWrappingAxisIterator<B>

java.lang.Object
net.sf.saxon.tree.iter.NodeWrappingAxisIterator<B>
Type Parameters:
B - the class of the external nodes being wrapped.
All Implemented Interfaces:
Closeable, AutoCloseable, SequenceIterator, AxisIterator, LookaheadIterator, UnfailingIterator

public class NodeWrappingAxisIterator<B> extends Object implements AxisIterator, LookaheadIterator
An AxisIterator that wraps a Java Iterator.
  • Field Details

  • Constructor Details

    • NodeWrappingAxisIterator

      public NodeWrappingAxisIterator(Iterator<? extends B> base, NodeWrappingFunction<? super B,NodeInfo> wrappingFunction)
      Create a SequenceIterator over a given iterator
      Parameters:
      base - the base Iterator
      wrappingFunction - a function that wraps objects of type B in a Saxon NodeInfo
  • Method Details