Class J9JavaStackIterator
java.lang.Object
com.ibm.j9ddr.vm29.j9.J9JavaStackIterator
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer
protected com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer
-
Constructor Summary
ModifierConstructorDescriptionprotected
J9JavaStackIterator
(com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer stack) -
Method Summary
Modifier and TypeMethodDescriptionstatic J9JavaStackIterator
fromJ9JavaStack
(com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer stack) Factory method to construct an appropriate stack list iterator.boolean
hasNext()
Returnstrue
if the iteration has more elements.com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer
next()
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
-
initialStack
protected com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer initialStack -
currentStack
protected com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer currentStack -
consumedInitial
protected boolean consumedInitial
-
-
Constructor Details
-
J9JavaStackIterator
protected J9JavaStackIterator(com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer stack) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
fromJ9JavaStack
public static J9JavaStackIterator fromJ9JavaStack(com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer stack) throws CorruptDataException Factory method to construct an appropriate stack list iterator.- Type Parameters:
T
-- Parameters:
structure
- the head of the list- Returns:
- an instance of J9JavaStackIterator
- Throws:
CorruptDataException
-
hasNext
public boolean hasNext()Description copied from interface:java.util.Iterator
Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifIterator.next()
would return an element rather than throwing an exception.) -
next
public com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer next()Description copied from interface:java.util.Iterator
Returns the next element in the iteration.
-