Class AnnotationsDirectory.AnnotationsDirectoryImpl.AnnotationIteratorImpl

java.lang.Object
org.jf.dexlib2.dexbacked.util.AnnotationsDirectory.AnnotationsDirectoryImpl.AnnotationIteratorImpl
All Implemented Interfaces:
AnnotationsDirectory.AnnotationIterator
Enclosing class:
AnnotationsDirectory.AnnotationsDirectoryImpl

private class AnnotationsDirectory.AnnotationsDirectoryImpl.AnnotationIteratorImpl extends Object implements AnnotationsDirectory.AnnotationIterator
  • Field Details

    • startOffset

      private final int startOffset
    • size

      private final int size
    • currentIndex

      private int currentIndex
    • currentItemIndex

      private int currentItemIndex
  • Constructor Details

    • AnnotationIteratorImpl

      public AnnotationIteratorImpl(int startOffset, int size)
  • Method Details

    • seekTo

      public int seekTo(int itemIndex)
      Description copied from interface: AnnotationsDirectory.AnnotationIterator
      Seeks the iterator forward, to the first item whose key is >= the requested key. If the requested key value is less than that of the item that the iterator currently points to, it will not be moved forward. If an item with the requested key is found, the associated annotation offset is returned. Otherwise, 0 is returned.
      Specified by:
      seekTo in interface AnnotationsDirectory.AnnotationIterator
      Parameters:
      itemIndex - The method/field index to search for
      Returns:
      The annotation offset associated with the requested key, or 0 if not found.
    • reset

      public void reset()
      Description copied from interface: AnnotationsDirectory.AnnotationIterator
      Resets the iterator to the beginning of its list.
      Specified by:
      reset in interface AnnotationsDirectory.AnnotationIterator