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 TypeMethodDescriptionvoidaddContents(DexFile file) intcompareTo(MethodAnnotationStruct other) booleanGets the associated annotations.Gets the method this item is for.inthashCode()toHuman()Return the "human" string form of this instance.voidwriteTo(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:
compareToin interfaceComparable<MethodAnnotationStruct>
-
addContents
-
writeTo
-
toHuman
-
getMethod
-
getAnnotations
Gets the associated annotations.- Returns:
non-null;the annotations
-