Class ImmutableMethodProtoReference
java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseMethodProtoReference
org.jf.dexlib2.immutable.reference.ImmutableMethodProtoReference
- All Implemented Interfaces:
Comparable<MethodProtoReference>, MethodProtoReference, Reference, ImmutableReference
public class ImmutableMethodProtoReference
extends BaseMethodProtoReference
implements ImmutableReference
-
Nested Class Summary
Nested classes/interfaces inherited from interface Reference
Reference.InvalidReferenceException -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImmutableMethodProtoReference(com.google.common.collect.ImmutableList<String> parameters, String returnType) ImmutableMethodProtoReference(Iterable<? extends CharSequence> parameters, String returnType) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends CharSequence> Gets a list of the types of the parameters of this method prototype.Gets the return type of the referenced method prototype.of(MethodProtoReference methodProtoReference) Methods inherited from class BaseMethodProtoReference
compareTo, equals, hashCode, toStringMethods inherited from class BaseReference
validateReferenceMethods inherited from interface Reference
validateReference
-
Field Details
-
parameters
-
returnType
-
-
Constructor Details
-
ImmutableMethodProtoReference
-
ImmutableMethodProtoReference
public ImmutableMethodProtoReference(@Nullable Iterable<? extends CharSequence> parameters, @Nonnull String returnType)
-
-
Method Details
-
of
@Nonnull public static ImmutableMethodProtoReference of(@Nonnull MethodProtoReference methodProtoReference) -
getParameterTypes
Description copied from interface:MethodProtoReferenceGets a list of the types of the parameters of this method prototype.- Specified by:
getParameterTypesin interfaceMethodProtoReference- Returns:
- A list of the parameter types of this method prototype, as strings.
-
getReturnType
Description copied from interface:MethodProtoReferenceGets the return type of the referenced method prototype.- Specified by:
getReturnTypein interfaceMethodProtoReference- Returns:
- The return type of the referenced method prototype.
-