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
ConstructorsConstructorDescriptionFieldAnnotationStruct
(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
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FieldAnnotationStruct>
-
addContents
-
writeTo
-
toHuman
-
getField
-
getAnnotations
Gets the associated annotations.- Returns:
non-null;
the annotations
-