com.caucho.xpath.pattern
Class UnionIterator

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

public class UnionIterator
extends NodeIterator

Uses the axis to select new nodes.


Field Summary
 
Fields inherited from class com.caucho.xpath.pattern.NodeIterator
_contextNode, _env, _position, _size, log
 
Constructor Summary
UnionIterator(ExprEnvironment env, NodeIterator leftIter, NodeIterator rightIter)
          Creates the new AxisIterator.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of the iterator.
 boolean hasNext()
          True if there's more data.
 org.w3c.dom.Node nextNode()
          Returns the next selected node.
 
Methods inherited from class com.caucho.xpath.pattern.NodeIterator
copy, getContextNode, getContextPosition, getContextSize, getCurrentNode, getFunction, getOwnerDocument, getPositionIndex, getStylesheetEnv, getVar, next, nextSelectedNode, remove, setContextNode, setMorePositions, stringValue, systemProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionIterator

public UnionIterator(ExprEnvironment env,
                     NodeIterator leftIter,
                     NodeIterator rightIter)
              throws XPathException
Creates the new AxisIterator.

Parameters:
leftIter - the left iterator
rightIter - the right iterator
Throws:
XPathException
Method Detail

hasNext

public boolean hasNext()
True if there's more data.

Specified by:
hasNext in interface java.util.Iterator<org.w3c.dom.Node>
Specified by:
hasNext in class NodeIterator

nextNode

public org.w3c.dom.Node nextNode()
                          throws XPathException
Returns the next selected node.

Specified by:
nextNode in class NodeIterator
Throws:
XPathException

clone

public java.lang.Object clone()
Returns a clone of the iterator.

Specified by:
clone in class NodeIterator