Package com.android.dx.dex.file
Class MethodAnnotationStruct
java.lang.Object
com.android.dx.dex.file.MethodAnnotationStruct
- All Implemented Interfaces:
ToHuman
,Comparable<MethodAnnotationStruct>
public final class MethodAnnotationStruct
extends Object
implements ToHuman, Comparable<MethodAnnotationStruct>
Association of a method and its annotations.
-
Constructor Summary
ConstructorDescriptionMethodAnnotationStruct
(CstMethodRef method, AnnotationSetItem annotations) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContents
(DexFile file) int
compareTo
(MethodAnnotationStruct other) boolean
Gets the associated annotations.Gets the method this item is for.int
hashCode()
toHuman()
Return the "human" string form of this instance.void
writeTo
(DexFile file, AnnotatedOutput out)
-
Constructor Details
-
MethodAnnotationStruct
Constructs an instance.- Parameters:
method
-non-null;
the method in questionannotations
-non-null;
the associated annotations
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MethodAnnotationStruct>
-
addContents
-
writeTo
-
toHuman
Return the "human" string form of this instance. This is generally less "debuggy" thantoString()
. -
getMethod
Gets the method this item is for.- Returns:
non-null;
the method
-
getAnnotations
Gets the associated annotations.- Returns:
non-null;
the annotations
-