public class DexBackedField extends BaseFieldReference implements Field
Reference.InvalidReferenceException| Modifier and Type | Field and Description |
|---|---|
int |
accessFlags |
int |
annotationSetOffset |
ClassDef |
classDef |
DexBackedDexFile |
dexFile |
int |
fieldIndex |
EncodedValue |
initialValue |
| Constructor and Description |
|---|
DexBackedField(DexBackedDexFile dexFile,
DexReader reader,
DexBackedClassDef classDef,
int previousFieldIndex,
AnnotationsDirectory.AnnotationIterator annotationIterator) |
DexBackedField(DexBackedDexFile dexFile,
DexReader reader,
DexBackedClassDef classDef,
int previousFieldIndex,
EncodedArrayItemIterator staticInitialValueIterator,
AnnotationsDirectory.AnnotationIterator annotationIterator) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets the access flags for this field.
|
java.util.Set<? extends DexBackedAnnotation> |
getAnnotations()
Gets a set of the annotations that are applied to this field.
|
java.lang.String |
getDefiningClass()
Gets the type of the class that defines this field.
|
EncodedValue |
getInitialValue()
Gets the initial value for this field, if available.
|
java.lang.String |
getName()
Gets the name of this field.
|
int |
getSize()
Calculate and return the private size of a field definition.
|
java.lang.String |
getType()
Gets the type of this field.
|
static void |
skipFields(DexReader reader,
int count)
Skips the reader over the specified number of encoded_field structures
|
compareTo, equals, hashCode, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReference@Nonnull public final DexBackedDexFile dexFile
@Nonnull public final ClassDef classDef
public final int accessFlags
@Nullable public final EncodedValue initialValue
public final int annotationSetOffset
public final int fieldIndex
public DexBackedField(@Nonnull
DexBackedDexFile dexFile,
@Nonnull
DexReader reader,
@Nonnull
DexBackedClassDef classDef,
int previousFieldIndex,
@Nonnull
EncodedArrayItemIterator staticInitialValueIterator,
@Nonnull
AnnotationsDirectory.AnnotationIterator annotationIterator)
public DexBackedField(@Nonnull
DexBackedDexFile dexFile,
@Nonnull
DexReader reader,
@Nonnull
DexBackedClassDef classDef,
int previousFieldIndex,
@Nonnull
AnnotationsDirectory.AnnotationIterator annotationIterator)
@Nonnull public java.lang.String getName()
Field@Nonnull public java.lang.String getType()
FieldgetType in interface FieldgetType in interface FieldReference@Nonnull public java.lang.String getDefiningClass()
FieldgetDefiningClass in interface FieldgetDefiningClass in interface MembergetDefiningClass in interface FieldReferencepublic int getAccessFlags()
FieldgetAccessFlags in interface FieldgetAccessFlags in interface Member@Nullable public EncodedValue getInitialValue()
FieldgetInitialValue in interface Field@Nonnull public java.util.Set<? extends DexBackedAnnotation> getAnnotations()
FieldgetAnnotations in interface AnnotatablegetAnnotations in interface Fieldpublic static void skipFields(@Nonnull
DexReader reader,
int count)
reader - The reader to skipcount - The number of encoded_field structures to skip overpublic int getSize()