Package org.jf.dexlib2.iface
Interface MethodParameter
-
- All Superinterfaces:
java.lang.CharSequence,java.lang.Comparable<java.lang.CharSequence>,LocalInfo,Reference,TypeReference
- All Known Implementing Classes:
BaseMethodParameter,BuilderMethodParameter,ImmutableMethodParameter,MethodParameterRewriter.RewrittenMethodParameter
public interface MethodParameter extends TypeReference, LocalInfo
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<? extends Annotation>getAnnotations()Gets a set of the annotations that are applied to this parameter.java.lang.StringgetName()Gets the name of this parameter, if available.java.lang.StringgetSignature()Gets the signature of this parameter, if available.java.lang.StringgetType()The type of this method parameter.-
Methods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, length, subSequence, toString
-
Methods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
Methods inherited from interface org.jf.dexlib2.iface.reference.TypeReference
compareTo, equals, hashCode
-
-
-
-
Method Detail
-
getType
@Nonnull java.lang.String 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
@Nonnull java.util.Set<? extends Annotation> 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
@Nullable java.lang.String getName()
Gets the name of this parameter, if available.
-
getSignature
@Nullable java.lang.String 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
-
-