public final class MethodAnnotationStruct extends java.lang.Object implements ToHuman, java.lang.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(java.lang.Object other) |
Annotations |
getAnnotations()
Gets the associated annotations.
|
CstMethodRef |
getMethod()
Gets the method 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 MethodAnnotationStruct(CstMethodRef method, AnnotationSetItem annotations)
method - non-null; the method 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(MethodAnnotationStruct other)
compareTo in interface java.lang.Comparable<MethodAnnotationStruct>public void addContents(DexFile file)
public void writeTo(DexFile file, AnnotatedOutput out)
public java.lang.String toHuman()
toString().public CstMethodRef getMethod()
non-null; the methodpublic Annotations getAnnotations()
non-null; the annotationsCopyright © 2020. All Rights Reserved.