Package gnu.bytecode
Class VarEnumerator
- java.lang.Object
-
- gnu.bytecode.VarEnumerator
-
- All Implemented Interfaces:
Enumeration
public class VarEnumerator extends Object implements Enumeration
Use this Enuemration class to iterate over the Variables in a Scope. Descends into child scopes.
-
-
Constructor Summary
Constructors Constructor Description VarEnumerator(Scope scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMoreElements()ObjectnextElement()VariablenextVar()Return the next Variable in the Scope tree, or null if done.voidreset()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
-
-
-
Constructor Detail
-
VarEnumerator
public VarEnumerator(Scope scope)
-
-
Method Detail
-
reset
public final void reset()
-
nextVar
public final Variable nextVar()
Return the next Variable in the Scope tree, or null if done.
-
hasMoreElements
public final boolean hasMoreElements()
- Specified by:
hasMoreElementsin interfaceEnumeration
-
nextElement
public Object nextElement()
- Specified by:
nextElementin interfaceEnumeration
-
-