Package com.android.dx.dex.file
Class FieldAnnotationStruct
java.lang.Object
com.android.dx.dex.file.FieldAnnotationStruct
- All Implemented Interfaces:
ToHuman
,Comparable<FieldAnnotationStruct>
public final class FieldAnnotationStruct
extends Object
implements ToHuman, Comparable<FieldAnnotationStruct>
Association of a field and its annotations.
-
Constructor Summary
ConstructorDescriptionFieldAnnotationStruct
(CstFieldRef field, AnnotationSetItem annotations) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContents
(DexFile file) int
compareTo
(FieldAnnotationStruct other) boolean
Gets the associated annotations.getField()
Gets the field this item is for.int
hashCode()
toHuman()
Return the "human" string form of this instance.void
writeTo
(DexFile file, AnnotatedOutput out)
-
Constructor Details
-
FieldAnnotationStruct
Constructs an instance.- Parameters:
field
-non-null;
the field in questionannotations
-non-null;
the associated annotations
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FieldAnnotationStruct>
-
addContents
-
writeTo
-
toHuman
Return the "human" string form of this instance. This is generally less "debuggy" thantoString()
. -
getField
Gets the field this item is for.- Returns:
non-null;
the field
-
getAnnotations
Gets the associated annotations.- Returns:
non-null;
the annotations
-