org.codehaus.groovy.sandbox.util
Class ElementIterator

java.lang.Object
  extended byorg.codehaus.groovy.sandbox.util.ElementIterator
All Implemented Interfaces:
java.util.Iterator

abstract class ElementIterator
extends java.lang.Object
implements java.util.Iterator


Field Summary
protected  int[] nextParentElements
           
protected  XmlList[] parents
           
 
Constructor Summary
protected ElementIterator(XmlList[] parents, int[] nextParentElements)
           
 
Method Summary
protected abstract  void findNextChild()
           
 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

parents

protected final XmlList[] parents

nextParentElements

protected final int[] nextParentElements
Constructor Detail

ElementIterator

protected ElementIterator(XmlList[] parents,
                          int[] nextParentElements)
Method Detail

hasNext

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

next

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

findNextChild

protected abstract void findNextChild()


Copyright © 2003-2005 The Codehaus. All Rights Reserved.