FileDocCategorySizeDatePackage
AttributeIterator.javaAPI DocJava SE 6 API2224Tue Jun 10 00:23:14 BST 2008com.sun.org.apache.xpath.internal.axes

AttributeIterator

public class AttributeIterator extends ChildTestIterator
This class implements an optimized iterator for attribute axes patterns.
see
com.sun.org.apache.xpath.internal.axes#ChildTestIterator
xsl.usage
advanced

Fields Summary
static final long
serialVersionUID
Constructors Summary
AttributeIterator(Compiler compiler, int opPos, int analysis)
Create a AttributeIterator object.

param
compiler A reference to the Compiler that contains the op map.
param
opPos The position within the op map, which contains the location path expression for this itterator.
throws
javax.xml.transform.TransformerException


                                        
       
           
  
    super(compiler, opPos, analysis);
  
Methods Summary
public intgetAxis()
Returns the axis being iterated, if it is known.

return
Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.

    return com.sun.org.apache.xml.internal.dtm.Axis.ATTRIBUTE;
  
protected intgetNextNode()
Get the next node via getFirstAttribute && getNextAttribute.

    m_lastFetched = (DTM.NULL == m_lastFetched)
                     ? m_cdtm.getFirstAttribute(m_context)
                     : m_cdtm.getNextAttribute(m_lastFetched);
    return m_lastFetched;