public final class FieldAnnotationStruct extends Object implements ToHuman, 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(Object other) |
Annotations |
getAnnotations()
Gets the associated annotations.
|
CstFieldRef |
getField()
Gets the field this item is for.
|
int |
hashCode() |
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 compareTo(FieldAnnotationStruct other)
compareTo in interface Comparable<FieldAnnotationStruct>public void addContents(DexFile file)
public void writeTo(DexFile file, AnnotatedOutput out)
public String toHuman()
toString().public CstFieldRef getField()
non-null; the fieldpublic Annotations getAnnotations()
non-null; the annotationsCopyright © 2016. All Rights Reserved.