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