public abstract class AnnotationsDirectory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
static AnnotationsDirectory |
EMPTY |
| Constructor and Description |
|---|
AnnotationsDirectory() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<? extends DexBackedAnnotation> |
getAnnotations(DexBackedDexFile dexFile,
int annotationSetOffset) |
abstract java.util.Set<? extends DexBackedAnnotation> |
getClassAnnotations() |
abstract int |
getFieldAnnotationCount() |
abstract AnnotationsDirectory.AnnotationIterator |
getFieldAnnotationIterator() |
abstract AnnotationsDirectory.AnnotationIterator |
getMethodAnnotationIterator() |
abstract AnnotationsDirectory.AnnotationIterator |
getParameterAnnotationIterator() |
static java.util.List<java.util.Set<? extends DexBackedAnnotation>> |
getParameterAnnotations(DexBackedDexFile dexFile,
int annotationSetListOffset) |
static AnnotationsDirectory |
newOrEmpty(DexBackedDexFile dexFile,
int directoryAnnotationsOffset) |
public static final AnnotationsDirectory EMPTY
public abstract int getFieldAnnotationCount()
@Nonnull public abstract java.util.Set<? extends DexBackedAnnotation> getClassAnnotations()
@Nonnull public abstract AnnotationsDirectory.AnnotationIterator getFieldAnnotationIterator()
@Nonnull public abstract AnnotationsDirectory.AnnotationIterator getMethodAnnotationIterator()
@Nonnull public abstract AnnotationsDirectory.AnnotationIterator getParameterAnnotationIterator()
@Nonnull public static AnnotationsDirectory newOrEmpty(@Nonnull DexBackedDexFile dexFile, int directoryAnnotationsOffset)
@Nonnull public static java.util.Set<? extends DexBackedAnnotation> getAnnotations(@Nonnull DexBackedDexFile dexFile, int annotationSetOffset)
@Nonnull public static java.util.List<java.util.Set<? extends DexBackedAnnotation>> getParameterAnnotations(@Nonnull DexBackedDexFile dexFile, int annotationSetListOffset)