Class ClassIterator

java.lang.Object
com.ibm.j9ddr.vm29.j9.walkers.ClassIterator
All Implemented Interfaces:
Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer>

public class ClassIterator extends Object implements Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Logger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ClassIterator(Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer> iterator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer>
    fromJ9Classloader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer loader)
     
    boolean
    Returns true if the iteration has more elements.
    com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
    Returns the next element in the iteration.

    Methods declared in class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods declared in interface java.util.Iterator

    forEachRemaining, remove
  • Field Details

    • logger

      protected static final Logger logger
  • Constructor Details

    • ClassIterator

      protected ClassIterator(Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer> iterator)
  • Method Details

    • fromJ9Classloader

      public static Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer> fromJ9Classloader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer loader) throws CorruptDataException
      Throws:
      CorruptDataException
    • hasNext

      public boolean hasNext()
      Description copied from interface: java.util.Iterator
      Returns true if the iteration has more elements. (In other words, returns true if Iterator.next() would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer>
      Returns:
      true if the iteration has more elements
    • next

      public com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer next()
      Description copied from interface: java.util.Iterator
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer>
      Returns:
      the next element in the iteration