Class AttributeIterator

All Implemented Interfaces:
Serializable, Cloneable, SourceLocator, DTMIterator, PathComponent, SubContextList, ExpressionNode, XPathVisitable

public class AttributeIterator
extends ChildTestIterator
This class implements an optimized iterator for attribute axes patterns.
See Also:
org.apache.xpath.axes#ChildTestIterator, Serialized Form
  • Method Details

    • getNextNode

      protected int getNextNode()
      Get the next node via getFirstAttribute && getNextAttribute.
      Overrides:
      getNextNode in class ChildTestIterator
      Returns:
      The next node on the axis, or DTM.NULL.
    • getAxis

      public int getAxis()
      Returns the axis being iterated, if it is known.
      Specified by:
      getAxis in interface DTMIterator
      Overrides:
      getAxis in class ChildTestIterator
      Returns:
      Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.