Package org.jf.dexlib2.dexbacked
Class DexBackedAnnotation
- java.lang.Object
-
- org.jf.dexlib2.base.BaseAnnotation
-
- org.jf.dexlib2.dexbacked.DexBackedAnnotation
-
- All Implemented Interfaces:
java.lang.Comparable<Annotation>
,Annotation
,BasicAnnotation
public class DexBackedAnnotation extends BaseAnnotation
-
-
Field Summary
Fields Modifier and Type Field Description DexBackedDexFile
dexFile
int
typeIndex
int
visibility
-
Fields inherited from class org.jf.dexlib2.base.BaseAnnotation
BY_TYPE
-
-
Constructor Summary
Constructors Constructor Description DexBackedAnnotation(DexBackedDexFile dexFile, int annotationOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<? extends DexBackedAnnotationElement>
getElements()
Gets a set of the name/value elements associated with this annotation.java.lang.String
getType()
Gets the type of this annotation.int
getVisibility()
Gets the visibility of this annotation.-
Methods inherited from class org.jf.dexlib2.base.BaseAnnotation
compareTo, equals, hashCode
-
-
-
-
Field Detail
-
dexFile
@Nonnull public final DexBackedDexFile dexFile
-
visibility
public final int visibility
-
typeIndex
public final int typeIndex
-
-
Constructor Detail
-
DexBackedAnnotation
public DexBackedAnnotation(@Nonnull DexBackedDexFile dexFile, int annotationOffset)
-
-
Method Detail
-
getVisibility
public int getVisibility()
Description copied from interface:Annotation
Gets the visibility of this annotation. This will be one of the AnnotationVisibility.* constants.- Returns:
- The visibility of this annotation
-
getType
@Nonnull public java.lang.String getType()
Description copied from interface:Annotation
Gets the type of this annotation. This will be the type descriptor of the class that defines this annotation.- Returns:
- The type of this annotation
-
getElements
@Nonnull public java.util.Set<? extends DexBackedAnnotationElement> getElements()
Description copied from interface:Annotation
Gets a set of the name/value elements associated with this annotation. The elements in the returned set will be unique with respect to the element name.- Returns:
- A set of AnnotationElements
-
-