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
ConstructorsConstructorDescriptionMethodAnnotationStruct
(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
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MethodAnnotationStruct>
-
addContents
-
writeTo
-
toHuman
-
getMethod
-
getAnnotations
Gets the associated annotations.- Returns:
non-null;
the annotations
-