org.jaxen.util
Class FollowingAxisIterator

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

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


Field Summary
private  java.lang.Object contextNode
           
private  java.util.Iterator currentSibling
           
private static java.util.Iterator EMPTY_ITERATOR
           
private  Navigator navigator
           
private  java.util.Iterator siblings
           
 
Constructor Summary
FollowingAxisIterator(java.lang.Object contextNode, Navigator navigator)
           
 
Method Summary
private  boolean goForward()
           
private  boolean goUp()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ITERATOR

private static final java.util.Iterator EMPTY_ITERATOR

contextNode

private java.lang.Object contextNode

navigator

private Navigator navigator

siblings

private java.util.Iterator siblings

currentSibling

private java.util.Iterator currentSibling
Constructor Detail

FollowingAxisIterator

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

goForward

private boolean goForward()

goUp

private boolean goUp()

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