Class ClassSegmentIterator

java.lang.Object
com.ibm.j9ddr.vm29.j9.walkers.ClassSegmentIterator
All Implemented Interfaces:
Iterator

public class ClassSegmentIterator extends Object implements Iterator
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClassSegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentListPointer source)
    Iterate over all segments in source, regardless of classloader.
    ClassSegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointer source)
    Iterate over all segments chained from source via J9MemorySegmentPointer.nextSegmentInClassLoader.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the iteration has more elements.
    Returns the next element in the iteration.

    Methods declared in interface Iterator

    forEachRemaining, remove
  • Constructor Details

    • ClassSegmentIterator

      public ClassSegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentListPointer source) throws CorruptDataException
      Iterate over all segments in source, regardless of classloader.
      Parameters:
      source -
      Throws:
      CorruptDataException
    • ClassSegmentIterator

      public ClassSegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointer source) throws CorruptDataException
      Iterate over all segments chained from source via J9MemorySegmentPointer.nextSegmentInClassLoader.
      Parameters:
      source -
      Throws:
      CorruptDataException
  • Method Details

    • 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
      Returns:
      true if the iteration has more elements
    • next

      public Object next()
      Description copied from interface: java.util.Iterator
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator
      Returns:
      the next element in the iteration