org.jaxen.util
Class PrecedingSiblingAxisIterator

java.lang.Object
  extended byorg.jaxen.util.PrecedingSiblingAxisIterator
All Implemented Interfaces:
java.util.Iterator

public class PrecedingSiblingAxisIterator
extends java.lang.Object
implements java.util.Iterator


Field Summary
private  java.lang.Object contextNode
           
private  Navigator navigator
           
private  java.lang.Object nextObj
           
private  java.util.Iterator siblingIter
           
 
Constructor Summary
PrecedingSiblingAxisIterator(java.lang.Object contextNode, Navigator navigator)
           
 
Method Summary
 boolean hasNext()
           
private  void init()
           
 java.lang.Object next()
           
 void remove()
           
private  void stepAhead()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextNode

private java.lang.Object contextNode

navigator

private Navigator navigator

siblingIter

private java.util.Iterator siblingIter

nextObj

private java.lang.Object nextObj
Constructor Detail

PrecedingSiblingAxisIterator

public PrecedingSiblingAxisIterator(java.lang.Object contextNode,
                                    Navigator navigator)
                             throws UnsupportedAxisException
Method Detail

init

private void init()
           throws UnsupportedAxisException
Throws:
UnsupportedAxisException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator
Throws:
java.util.NoSuchElementException

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException

stepAhead

private void stepAhead()