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 org.jf.dexlib2.iface.reference.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 org.jf.dexlib2.base.reference.BaseMethodProtoReference
compareTo, equals, hashCode, toStringMethods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReferenceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jf.dexlib2.iface.reference.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.
-