Class FollowingIterator
java.lang.Object
com.puppycrawl.tools.checkstyle.xpath.iterators.FollowingIterator
- All Implemented Interfaces:
Closeable, AutoCloseable, net.sf.saxon.om.SequenceIterator, net.sf.saxon.tree.iter.AxisIterator
Recursive-free implementation of the following axis iterator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.sf.saxon.tree.iter.AxisIteratorAncestor axis iterator.private net.sf.saxon.tree.iter.AxisIteratorDescendant axis iterator.private net.sf.saxon.tree.iter.AxisIteratorFollowing-sibling axis iterator. -
Constructor Summary
ConstructorsConstructorDescriptionFollowingIterator(net.sf.saxon.om.NodeInfo start) Create an iterator over the "following" axis. -
Method Summary
Modifier and TypeMethodDescriptionnet.sf.saxon.om.NodeInfonext()Get the next item in the sequence.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.om.SequenceIterator
close
-
Field Details
-
ancestorEnum
private final net.sf.saxon.tree.iter.AxisIterator ancestorEnumAncestor axis iterator. -
siblingEnum
private net.sf.saxon.tree.iter.AxisIterator siblingEnumFollowing-sibling axis iterator. -
descendantEnum
private net.sf.saxon.tree.iter.AxisIterator descendantEnumDescendant axis iterator.
-
-
Constructor Details
-
FollowingIterator
public FollowingIterator(net.sf.saxon.om.NodeInfo start) Create an iterator over the "following" axis.- Parameters:
start- the initial context node.
-
-
Method Details
-
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.
-