ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

javafe.filespace
Class TreeWalker_ArrayEnum

java.lang.Object
  extended byjavafe.filespace.LookAheadEnum
      extended byjavafe.filespace.TreeWalker_ArrayEnum
All Implemented Interfaces:
java.util.Enumeration

class TreeWalker_ArrayEnum
extends LookAheadEnum

A Enumeration for enumerating the members of an array of Objects. This filter is for the use of the TreeWalker class only; if inner classes were available, it would be expressed as an anonymous class.


Field Summary
private  int index
           
private  java.lang.Object[] list
           
 
Constructor Summary
(package private) TreeWalker_ArrayEnum(java.lang.Object[] list)
           
 
Method Summary
 java.lang.Object calcNextElement()
          Compute the next element in the series, or return null if the series is exhausted.
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

private java.lang.Object[] list

index

private int index
Constructor Detail

TreeWalker_ArrayEnum

TreeWalker_ArrayEnum(java.lang.Object[] list)
Method Detail

calcNextElement

public java.lang.Object calcNextElement()
Description copied from class: LookAheadEnum
Compute the next element in the series, or return null if the series is exhausted. This function will never be called again once it returns null.

Specified by:
calcNextElement in class LookAheadEnum

hasMoreElements

public final boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true iff any more elements exist in this enumeration.

nextElement

public final java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration

ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

The ESC/Java2 Project Homepage