Class ImmutableMethodParameter
java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseTypeReference
org.jf.dexlib2.base.BaseMethodParameter
org.jf.dexlib2.immutable.ImmutableMethodParameter
- All Implemented Interfaces:
CharSequence, Comparable<CharSequence>, LocalInfo, MethodParameter, Reference, TypeReference
-
Nested Class Summary
Nested classes/interfaces inherited from interface Reference
Reference.InvalidReferenceException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> private static final ImmutableConverter<ImmutableMethodParameter, MethodParameter> protected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionImmutableMethodParameter(String type, com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations, String name) ImmutableMethodParameter(String type, Set<? extends Annotation> annotations, String name) -
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()Gets the string representation of the referenced type.static com.google.common.collect.ImmutableList<ImmutableMethodParameter> immutableListOf(Iterable<? extends MethodParameter> list) static ImmutableMethodParameterof(MethodParameter methodParameter) Methods inherited from class BaseTypeReference
charAt, compareTo, equals, hashCode, length, subSequence, toStringMethods inherited from class BaseReference
validateReferenceMethods inherited from interface CharSequence
charAt, chars, codePoints, getChars, isEmpty, length, subSequence, toStringMethods inherited from interface Reference
validateReferenceMethods inherited from interface TypeReference
compareTo, equals, hashCode
-
Field Details
-
type
-
annotations
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations -
name
-
CONVERTER
-
-
Constructor Details
-
ImmutableMethodParameter
public ImmutableMethodParameter(@Nonnull String type, @Nullable Set<? extends Annotation> annotations, @Nullable String name) -
ImmutableMethodParameter
public ImmutableMethodParameter(@Nonnull String type, @Nullable com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations, @Nullable String name)
-
-
Method Details
-
of
-
getType
Description copied from interface:TypeReferenceGets the string representation of the referenced type. The returned string will be a TypeDescriptor, as defined in the dex file specification- Returns:
- The string representation of the referenced type.
-
getAnnotations
Description copied from interface:MethodParameterGets 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
Description copied from interface:MethodParameterGets the name of this parameter, if available.- Returns:
- The name of this parameter, or null if the name is not available.
-
getSignature
Description copied from interface:MethodParameterGets 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- Specified by:
getSignaturein interfaceMethodParameter- Overrides:
getSignaturein classBaseMethodParameter- Returns:
- The signature of this parameter, or null if not available
-
immutableListOf
@Nonnull public static com.google.common.collect.ImmutableList<ImmutableMethodParameter> immutableListOf(@Nullable Iterable<? extends MethodParameter> list)
-