public final class FieldAnnotationStruct extends java.lang.Object implements ToHuman, java.lang.Comparable<FieldAnnotationStruct>
| Constructor and Description |
|---|
FieldAnnotationStruct(CstFieldRef field,
AnnotationSetItem annotations)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContents(DexFile file) |
int |
compareTo(FieldAnnotationStruct other) |
boolean |
equals(java.lang.Object other) |
Annotations |
getAnnotations()
Gets the associated annotations.
|
CstFieldRef |
getField()
Gets the field this item is for.
|
int |
hashCode() |
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
void |
writeTo(DexFile file,
AnnotatedOutput out) |
public FieldAnnotationStruct(CstFieldRef field, AnnotationSetItem annotations)
field - non-null; the field in questionannotations - non-null; the associated annotationspublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int compareTo(FieldAnnotationStruct other)
compareTo in interface java.lang.Comparable<FieldAnnotationStruct>public void addContents(DexFile file)
public void writeTo(DexFile file, AnnotatedOutput out)
public java.lang.String toHuman()
toString().public CstFieldRef getField()
non-null; the fieldpublic Annotations getAnnotations()
non-null; the annotationsCopyright © 2020. All Rights Reserved.