Package org.jf.dexlib2.iface
Interface MethodParameter
- All Superinterfaces:
CharSequence,Comparable<CharSequence>,LocalInfo,Reference,TypeReference
- All Known Implementing Classes:
BaseMethodParameter,BuilderMethodParameter,ImmutableMethodParameter,MethodParameterRewriter.RewrittenMethodParameter,SmaliMethodParameter
This class represents a method parameter.
It also acts as a TypeReference to the type of this parameter. Any equality/comparison is based on its identity as a
TypeReference, and should not take into account any details other than the parameter type.
It also acts as a LocalInfo object, and conceptually defines the debug information for any parameter register at the
beginning of the method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException -
Method Summary
Modifier and TypeMethodDescriptionSet<? extends Annotation> Gets a set of the annotations that are applied to this parameter.getName()Gets the name of this parameter, if available.Gets the signature of this parameter, if available.getType()The type of this method parameter.Methods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, isEmpty, length, subSequence, toStringMethods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReferenceMethods inherited from interface org.jf.dexlib2.iface.reference.TypeReference
compareTo, equals, hashCode
-
Method Details
-
getType
The type of this method parameter. This may be any type, including primitive or array types, other than the void (V) type.- Specified by:
getTypein interfaceLocalInfo- Specified by:
getTypein interfaceTypeReference- Returns:
- The type of this method parameter
-
getAnnotations
Gets a set of the annotations that are applied to this parameter. The annotations in the returned set are guaranteed to have unique types.- Returns:
- A set of the annotations that are applied to this parameter
-
getName
Gets the name of this parameter, if available. -
getSignature
Gets the signature of this parameter, if available. The signature of a parameter is defined to be the concatenated version of the dalvik.annotation.Signature annotation applied to this parameter, or null if there is no dalvik.annotation.Signature annotation.- Specified by:
getSignaturein interfaceLocalInfo- Returns:
- The signature of this parameter, or null if not available
-