com.gargoylesoftware.htmlunit.html
Class DomNode.DescendantElementsIterator

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.DomNode.DescendantElementsIterator
All Implemented Interfaces:
Iterator
Enclosing class:
DomNode

protected class DomNode.DescendantElementsIterator
extends Object
implements Iterator

An iterator over all HtmlElement descendants in document order.


Constructor Summary
protected DomNode.DescendantElementsIterator()
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 HtmlElement nextElement()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomNode.DescendantElementsIterator

protected DomNode.DescendantElementsIterator()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Returns:
is there a next one?

next

public Object next()
Specified by:
next in interface Iterator
Returns:
the next one

remove

public void remove()
            throws UnsupportedOperationException
Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException - always

nextElement

public HtmlElement nextElement()
Returns:
is there a next one?


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.