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 Details

    • VarEnumerator

      public VarEnumerator(Scope scope)
  • Method Details

    • 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:
      hasMoreElements in interface Enumeration
    • nextElement

      public Object nextElement()
      Specified by:
      nextElement in interface Enumeration