Class ReverseListIterator
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.xpath.iterators.ReverseListIterator
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,net.sf.saxon.om.SequenceIterator,net.sf.saxon.tree.iter.AxisIterator
public class ReverseListIterator extends java.lang.Object implements net.sf.saxon.tree.iter.AxisIterator
Iterates list in backward direction.
-
-
Constructor Summary
Constructors Constructor Description ReverseListIterator(java.util.Collection<? extends net.sf.saxon.om.NodeInfo> items)Constructor forReverseListIteratorclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.saxon.om.NodeInfonext()Get the next item in the sequence.
-
-
-
Constructor Detail
-
ReverseListIterator
public ReverseListIterator(java.util.Collection<? extends net.sf.saxon.om.NodeInfo> items)
Constructor forReverseListIteratorclass.- Parameters:
items- the collection of nodes.
-
-
Method Detail
-
next
public net.sf.saxon.om.NodeInfo next()
Get the next item in the sequence.- Specified by:
nextin interfacenet.sf.saxon.tree.iter.AxisIterator- Specified by:
nextin interfacenet.sf.saxon.om.SequenceIterator- Returns:
- the next Item. If there are no more nodes, return null.
-
-