net.sourceforge.jane.jjtree
Class ChildNodeEnumeration

java.lang.Object
  |
  +--net.sourceforge.jane.util.ExtendedEnumeration
        |
        +--net.sourceforge.jane.jjtree.ChildNodeEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class ChildNodeEnumeration
extends ExtendedEnumeration

A enumeration object that enumerates over the child of a particular node.


Fields inherited from class net.sourceforge.jane.util.ExtendedEnumeration
predicate
 
Constructor Summary
ChildNodeEnumeration(Node aParent, java.lang.Class aMatch)
          Create a new ChildNodeEnumeration.
 
Method Summary
protected  boolean doCheckSize()
          Returns true if there are not more elements in the current series.
protected  void doNext()
          Go to the next element.
protected  java.lang.Object getCurrent()
          Returns the current element.
 boolean hasMoreNodes()
          Returns true if there are more nodes.
 Node nextNode()
          Returns the next node.
 void reset()
          Reset this enumeration to the beginning.
 
Methods inherited from class net.sourceforge.jane.util.ExtendedEnumeration
doEvaluate, hasMoreElements, nextElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildNodeEnumeration

public ChildNodeEnumeration(Node aParent,
                            java.lang.Class aMatch)
Create a new ChildNodeEnumeration.
Method Detail

hasMoreNodes

public boolean hasMoreNodes()
Returns true if there are more nodes.

nextNode

public Node nextNode()
Returns the next node.

reset

public void reset()
Reset this enumeration to the beginning.
Overrides:
reset in class ExtendedEnumeration

doCheckSize

protected boolean doCheckSize()
Returns true if there are not more elements in the current series.
Overrides:
doCheckSize in class ExtendedEnumeration

getCurrent

protected java.lang.Object getCurrent()
Returns the current element.
Overrides:
getCurrent in class ExtendedEnumeration

doNext

protected void doNext()
Go to the next element.
Overrides:
doNext in class ExtendedEnumeration


Copyright © 2002-2002 SourceForge. All Rights Reserved.