com.caucho.xpath.pattern
Class AttributeIterator

java.lang.Object
  extended by com.caucho.xpath.pattern.NodeIterator
      extended by com.caucho.xpath.pattern.AxisIterator
          extended by com.caucho.xpath.pattern.AttributeIterator
All Implemented Interfaces:
ExprEnvironment, java.util.Iterator<org.w3c.dom.Node>

public class AttributeIterator
extends AxisIterator

Uses the axis to select new nodes.


Field Summary
 
Fields inherited from class com.caucho.xpath.pattern.AxisIterator
_axis, _lastNode, _match, _next, _node, _parentIter
 
Fields inherited from class com.caucho.xpath.pattern.NodeIterator
_contextNode, _env, _position, _size, log
 
Constructor Summary
AttributeIterator(NodeIterator parentIter, AbstractPattern axis, org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match)
          Creates the new AxisIterator.
 
Method Summary
 java.lang.Object clone()
          clones the iterator
 SelectedNode nextSelectedNode()
          Returns the next selected node.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.xpath.pattern.AxisIterator
getContextSize, hasNext, nextNode
 
Methods inherited from class com.caucho.xpath.pattern.NodeIterator
copy, getContextNode, getContextPosition, getCurrentNode, getFunction, getOwnerDocument, getPositionIndex, getStylesheetEnv, getVar, next, remove, setContextNode, setMorePositions, stringValue, systemProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeIterator

public AttributeIterator(NodeIterator parentIter,
                         AbstractPattern axis,
                         org.w3c.dom.Node node,
                         ExprEnvironment env,
                         AbstractPattern match)
                  throws XPathException
Creates the new AxisIterator.

Parameters:
parentIter - the parent iterator
axis - the owning axis
node - the first node
env - the xpath environment
context - the context node
match - the node matching pattern
Throws:
XPathException
Method Detail

nextSelectedNode

public SelectedNode nextSelectedNode()
                              throws XPathException
Returns the next selected node.

Overrides:
nextSelectedNode in class NodeIterator
Throws:
XPathException

clone

public java.lang.Object clone()
Description copied from class: NodeIterator
clones the iterator

Overrides:
clone in class AxisIterator

toString

public java.lang.String toString()
Overrides:
toString in class AxisIterator