Package org.jf.dexlib2.dexbacked.util
Interface AnnotationsDirectory.AnnotationIterator
- All Known Implementing Classes:
AnnotationsDirectory.AnnotationsDirectoryImpl.AnnotationIteratorImpl
- Enclosing class:
AnnotationsDirectory
public static interface AnnotationsDirectory.AnnotationIterator
This provides a forward-only, skipable iteration over the field_annotation, method_annotation or
parameter_annotation lists in an annotations_directory_item.
These lists associate a key, either a field or method index, with an offset to where the annotation data for
that field/method/parameter is stored.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
EMPTY
-
-
Method Details
-
seekTo
int seekTo(int key) 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.- Parameters:
key- The method/field index to search for- Returns:
- The annotation offset associated with the requested key, or 0 if not found.
-
reset
void reset()Resets the iterator to the beginning of its list.
-