java.lang.Object
com.ibm.j9ddr.vm29.j9.gc.GCBase
com.ibm.j9ddr.vm29.j9.gc.GCIterator
com.ibm.j9ddr.vm29.j9.gc.GCClassLoaderSegmentIterator
- All Implemented Interfaces:
SlotIterator,Iterator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGCClassLoaderSegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer classLoader, long flags) -
Method Summary
Modifier and TypeMethodDescriptionstatic GCClassLoaderSegmentIteratorfromJ9ClassLoader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer classLoader, long flags) Factory method to construct an appropriate segment iterator.booleanhasNext()Returnstrueif the iteration has more elements.com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointernext()Returns the next element in the iteration.Methods declared in class com.ibm.j9ddr.vm29.j9.gc.GCBase
getExtensions, getJavaVMMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
GCClassLoaderSegmentIterator
protected GCClassLoaderSegmentIterator(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer classLoader, long flags) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
fromJ9ClassLoader
public static GCClassLoaderSegmentIterator fromJ9ClassLoader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer classLoader, long flags) throws CorruptDataException Factory method to construct an appropriate segment iterator.- Parameters:
flags- only iterate segments that match these flagslist- the J9ClassLoader to iterate- Returns:
- an instance of GCSegmentIterator
- Throws:
CorruptDataException
-
hasNext
public boolean hasNext()Description copied from interface:java.util.IteratorReturnstrueif the iteration has more elements. (In other words, returnstrueifIterator.next()would return an element rather than throwing an exception.)- Returns:
trueif the iteration has more elements
-
next
public com.ibm.j9ddr.vm29.pointer.generated.J9MemorySegmentPointer next()Description copied from interface:java.util.IteratorReturns the next element in the iteration.- Returns:
- the next element in the iteration
-
nextAddress
-