groovy.util.slurpersupport
Class NodeIterator

java.lang.Object
  extended by groovy.util.slurpersupport.NodeIterator
All Implemented Interfaces:
java.util.Iterator

public abstract class NodeIterator
extends java.lang.Object
implements java.util.Iterator

Author:
John Wilson

Field Summary
private static java.lang.Object DELAYED_INIT
           
private  java.util.Iterator iter
           
private  java.lang.Object nextNode
           
 
Constructor Summary
NodeIterator(java.util.Iterator iter)
           
 
Method Summary
protected abstract  java.lang.Object getNextNode(java.util.Iterator iter)
           
 boolean hasNext()
           
private  void initNextNode()
           
 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

DELAYED_INIT

private static final java.lang.Object DELAYED_INIT

iter

private final java.util.Iterator iter

nextNode

private java.lang.Object nextNode
Constructor Detail

NodeIterator

public NodeIterator(java.util.Iterator iter)
Method Detail

initNextNode

private void initNextNode()

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

getNextNode

protected abstract java.lang.Object getNextNode(java.util.Iterator iter)


Copyright © ${year} The Codehaus. All Rights Reserved.