Package groovy.xml.slurpersupport
Class NodeIterator
java.lang.Object
groovy.xml.slurpersupport.NodeIterator
- All Implemented Interfaces:
Iterator
Helper class for iterating through nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionNodeIterator(Iterator iter) Creates a filtering iterator over another iterator of candidate nodes. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
NodeIterator
Creates a filtering iterator over another iterator of candidate nodes.- Parameters:
iter- source iterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
getNextNode
Returns the next node visible to callers, ornullwhen iteration is exhausted.- Parameters:
iter- source iterator- Returns:
- next matching node or
null
-