Package org.jf.dexlib2.dexbacked.value
Class DexBackedAnnotationEncodedValue
- java.lang.Object
-
- org.jf.dexlib2.base.value.BaseAnnotationEncodedValue
-
- org.jf.dexlib2.dexbacked.value.DexBackedAnnotationEncodedValue
-
- All Implemented Interfaces:
java.lang.Comparable<EncodedValue>
,BasicAnnotation
,AnnotationEncodedValue
,EncodedValue
public class DexBackedAnnotationEncodedValue extends BaseAnnotationEncodedValue implements AnnotationEncodedValue
-
-
Field Summary
Fields Modifier and Type Field Description DexBackedDexFile
dexFile
java.lang.String
type
-
Constructor Summary
Constructors Constructor Description DexBackedAnnotationEncodedValue(DexBackedDexFile dexFile, DexReader reader)
-
Method Summary
All Methods Static 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.static void
skipFrom(DexReader reader)
-
Methods inherited from class org.jf.dexlib2.base.value.BaseAnnotationEncodedValue
compareTo, equals, getValueType, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.value.AnnotationEncodedValue
compareTo, equals, hashCode
-
Methods inherited from interface org.jf.dexlib2.iface.value.EncodedValue
getValueType
-
-
-
-
Field Detail
-
dexFile
@Nonnull public final DexBackedDexFile dexFile
-
type
@Nonnull public final java.lang.String type
-
-
Constructor Detail
-
DexBackedAnnotationEncodedValue
public DexBackedAnnotationEncodedValue(@Nonnull DexBackedDexFile dexFile, @Nonnull DexReader reader)
-
-
Method Detail
-
skipFrom
public static void skipFrom(@Nonnull DexReader reader)
-
getType
@Nonnull public java.lang.String getType()
Description copied from interface:AnnotationEncodedValue
Gets the type of this annotation. This will be the type descriptor of the class that defines this annotation.- Specified by:
getType
in interfaceAnnotationEncodedValue
- Specified by:
getType
in interfaceBasicAnnotation
- Returns:
- The type of this annotation
-
getElements
@Nonnull public java.util.Set<? extends DexBackedAnnotationElement> getElements()
Description copied from interface:AnnotationEncodedValue
Gets a set of the name/value elements associated with this annotation. The elements in the returned set will be unique by name.- Specified by:
getElements
in interfaceAnnotationEncodedValue
- Specified by:
getElements
in interfaceBasicAnnotation
- Returns:
- A set of AnnotationElements
-
-