Package com.android.dx.dex.file
Class ParameterAnnotationStruct
java.lang.Object
com.android.dx.dex.file.ParameterAnnotationStruct
- All Implemented Interfaces:
ToHuman
,Comparable<ParameterAnnotationStruct>
public final class ParameterAnnotationStruct
extends Object
implements ToHuman, Comparable<ParameterAnnotationStruct>
Association of a method and its parameter annotations.
-
Constructor Summary
ConstructorDescriptionParameterAnnotationStruct
(CstMethodRef method, AnnotationsList annotationsList, DexFile dexFile) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContents
(DexFile file) int
boolean
Gets the associated annotations list.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
-
ParameterAnnotationStruct
public ParameterAnnotationStruct(CstMethodRef method, AnnotationsList annotationsList, DexFile dexFile) Constructs an instance.- Parameters:
method
-non-null;
the method in questionannotationsList
-non-null;
the associated annotations listdexFile
-non-null;
dex output
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ParameterAnnotationStruct>
-
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
-
getAnnotationsList
Gets the associated annotations list.- Returns:
non-null;
the annotations list
-