Class ImmutableMethodReference
java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseMethodReference
org.jf.dexlib2.immutable.reference.ImmutableMethodReference
- All Implemented Interfaces:
Comparable<MethodReference>,MethodReference,Reference,ImmutableReference
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImmutableMethodReference(String definingClass, String name, com.google.common.collect.ImmutableList<String> parameters, String returnType) ImmutableMethodReference(String definingClass, String name, Iterable<? extends CharSequence> parameters, String returnType) -
Method Summary
Modifier and TypeMethodDescriptionGets the type of the class that defines the referenced method.getName()Gets the name of the referenced method.com.google.common.collect.ImmutableList<String> Gets a list of the types of the parameters of this method.Gets the return type of the referenced method.static ImmutableMethodReferenceof(MethodReference methodReference) Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodReference
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
-
definingClass
-
name
-
parameters
-
returnType
-
-
Constructor Details
-
ImmutableMethodReference
public ImmutableMethodReference(@Nonnull String definingClass, @Nonnull String name, @Nullable Iterable<? extends CharSequence> parameters, @Nonnull String returnType) -
ImmutableMethodReference
-
-
Method Details
-
of
-
getDefiningClass
Description copied from interface:MethodReferenceGets the type of the class that defines the referenced method.- Specified by:
getDefiningClassin interfaceMethodReference- Returns:
- The type of the class that defines the referenced method
-
getName
Description copied from interface:MethodReferenceGets the name of the referenced method.- Specified by:
getNamein interfaceMethodReference- Returns:
- The name of the referenced method
-
getParameterTypes
Description copied from interface:MethodReferenceGets a list of the types of the parameters of this method.- Specified by:
getParameterTypesin interfaceMethodReference- Returns:
- A list of the parameter types of this method, as strings.
-
getReturnType
Description copied from interface:MethodReferenceGets the return type of the referenced method.- Specified by:
getReturnTypein interfaceMethodReference- Returns:
- The return type of the referenced method.
-