- java.lang.Object
-
- com.ibm.j9ddr.vm29.j9.gc.GCBase
-
- com.ibm.j9ddr.vm29.j9.gc.GCIterator
-
- com.ibm.j9ddr.vm29.j9.gc.GCObjectIterator
-
- All Implemented Interfaces:
SlotIterator
,Iterator
public abstract class GCObjectIterator extends GCIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
includeClassSlot
protected com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
object
-
Constructor Summary
Constructors Modifier Constructor Description protected
GCObjectIterator(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object, boolean includeClassSlot)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GCObjectIterator
fromJ9Class(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, VoidPointer addr)
Factory method to construct an appropriate object iterator.static GCObjectIterator
fromJ9Object(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object, boolean includeClassSlot)
Factory method to construct an appropriate object iterator.-
Methods declared in class com.ibm.j9ddr.vm29.j9.gc.GCBase
getExtensions, getJavaVM
-
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, hasNext, next, remove
-
Methods declared in interface com.ibm.j9ddr.vm29.j9.SlotIterator
nextAddress
-
-
-
-
Constructor Detail
-
GCObjectIterator
protected GCObjectIterator(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object, boolean includeClassSlot) throws CorruptDataException
- Throws:
CorruptDataException
-
-
Method Detail
-
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 iterateincludeClassSlot
- 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:
object
- Object to iterateincludeClassSlot
- whether or not to include class of the objectaddr
- pointer to object data- Throws:
CorruptDataException
-
-