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, net.sf.saxon.tree.iter.UnfailingIterator

public class FollowingIterator extends Object implements net.sf.saxon.tree.iter.AxisIterator
Recursive-free implementation of the following axis iterator.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.sf.saxon.om.SequenceIterator

    net.sf.saxon.om.SequenceIterator.Property
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final net.sf.saxon.tree.iter.AxisIterator
    Ancestor axis iterator.
    private net.sf.saxon.tree.iter.AxisIterator
    Descendant axis iterator.
    private net.sf.saxon.tree.iter.AxisIterator
    Following-sibling axis iterator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FollowingIterator(net.sf.saxon.om.NodeInfo start)
    Create an iterator over the "following" axis.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.sf.saxon.om.NodeInfo
    Get the next item in the sequence.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.sf.saxon.tree.iter.AxisIterator

    asIterator, forEachNode

    Methods inherited from interface net.sf.saxon.om.SequenceIterator

    close, forEachOrFail, getProperties, materialize

    Methods inherited from interface net.sf.saxon.tree.iter.UnfailingIterator

    forEach, toList
  • Field Details

    • ancestorEnum

      private final net.sf.saxon.tree.iter.AxisIterator ancestorEnum
      Ancestor axis iterator.
    • siblingEnum

      private net.sf.saxon.tree.iter.AxisIterator siblingEnum
      Following-sibling axis iterator.
    • descendantEnum

      private net.sf.saxon.tree.iter.AxisIterator descendantEnum
      Descendant 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:
      next in interface net.sf.saxon.tree.iter.AxisIterator
      Specified by:
      next in interface net.sf.saxon.om.SequenceIterator
      Specified by:
      next in interface net.sf.saxon.tree.iter.UnfailingIterator
      Returns:
      the next Item. If there are no more nodes, return null.