Class J9JavaStackIterator

java.lang.Object
com.ibm.j9ddr.vm29.j9.J9JavaStackIterator
All Implemented Interfaces:
Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer>

public class J9JavaStackIterator extends Object implements Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer
     
    protected com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    J9JavaStackIterator(com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJ9JavaStack(com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer stack)
    Factory method to construct an appropriate stack list iterator.
    boolean
    Returns true if the iteration has more elements.
    com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer
    Returns the next element in the iteration.

    Methods declared in interface 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

  • 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
      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<com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer>
      Returns:
      true if the iteration has more elements
    • next

      public com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer next()
      Description copied from interface: java.util.Iterator
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator<com.ibm.j9ddr.vm29.pointer.generated.J9JavaStackPointer>
      Returns:
      the next element in the iteration