Class GCObjectIterator

All Implemented Interfaces:
SlotIterator, Iterator

public abstract class GCObjectIterator extends GCIterator
  • Field Details

    • object

      protected com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object
    • includeClassSlot

      protected boolean includeClassSlot
  • Constructor Details

  • Method Details

    • fromJ9Object

      public static GCObjectIterator fromJ9Object(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object, boolean includeClassSlot) throws CorruptDataException
      Factory method to construct an appropriate object iterator.
      Parameters:
      object - Object to iterate
      includeClassSlot - whether or not to include class of the object
      Throws:
      CorruptDataException
    • fromJ9Class

      public static GCObjectIterator fromJ9Class(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, VoidPointer addr) throws CorruptDataException
      Factory method to construct an appropriate object iterator.
      Parameters:
      addr - pointer to object data
      object - Object to iterate
      includeClassSlot - whether or not to include class of the object
      Throws:
      CorruptDataException