APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.axes

public Class AttributeIterator

extends ChildTestIterator
Class Inheritance
Imports
com.sun.org.apache.xml.internal.dtm.DTM, com.sun.org.apache.xpath.internal.compiler.Compiler

This class implements an optimized iterator for attribute axes patterns.
See Also
com.sun.org.apache.xpath.internal.axes#ChildTestIterator

Field Summary

Modifier and TypeField and Description
pack-priv static final long
Inherited from com.sun.org.apache.xpath.internal.axes.ChildTestIterator:
m_traverser

Constructor Summary

AccessConstructor and Description
pack-priv
AttributeIterator(Compiler
A reference to the Compiler that contains the op map.
compiler
,
int
The position within the op map, which contains the location path expression for this itterator.
opPos
,
int analysis)

Create a AttributeIterator object.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

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

Overrides com.sun.org.apache.xpath.internal.axes.ChildTestIterator.getAxis.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.getAxis.

Returns the axis being iterated, if it is known.

protected int
getNextNode()

Overrides com.sun.org.apache.xpath.internal.axes.ChildTestIterator.getNextNode.

Get the next node via getFirstAttribute && getNextAttribute.

Inherited from com.sun.org.apache.xpath.internal.axes.ChildTestIterator:
cloneWithResetdetachsetRoot

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xpath.internal.axes.ChildTestIterator.serialVersionUID.

Constructor Detail

AttributeIteratorback to summary
pack-priv AttributeIterator(Compiler compiler, int opPos, int analysis) throws TransformerException

Create a AttributeIterator object.

Parameters
compiler:Compiler

A reference to the Compiler that contains the op map.

opPos:int

The position within the op map, which contains the location path expression for this itterator.

Method Detail

getAxisback to summary
public int getAxis()

Overrides com.sun.org.apache.xpath.internal.axes.ChildTestIterator.getAxis.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.getAxis.

Returns the axis being iterated, if it is known.

Returns:int

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

getNextNodeback to summary
protected int getNextNode()

Overrides com.sun.org.apache.xpath.internal.axes.ChildTestIterator.getNextNode.

Get the next node via getFirstAttribute && getNextAttribute.