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:
java.lang.Comparable<MethodReference>
,MethodReference
,Reference
,ImmutableReference
public class ImmutableMethodReference extends BaseMethodReference implements ImmutableReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
definingClass
protected java.lang.String
name
protected com.google.common.collect.ImmutableList<java.lang.String>
parameters
protected java.lang.String
returnType
-
Constructor Summary
Constructors Constructor Description ImmutableMethodReference(java.lang.String definingClass, java.lang.String name, com.google.common.collect.ImmutableList<java.lang.String> parameters, java.lang.String returnType)
ImmutableMethodReference(java.lang.String definingClass, java.lang.String name, java.lang.Iterable<? extends java.lang.CharSequence> parameters, java.lang.String returnType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefiningClass()
Gets the type of the class that defines the referenced method.java.lang.String
getName()
Gets the name of the referenced method.com.google.common.collect.ImmutableList<java.lang.String>
getParameterTypes()
Gets a list of the types of the parameters of this method.java.lang.String
getReturnType()
Gets the return type of the referenced method.static ImmutableMethodReference
of(MethodReference methodReference)
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodReference
compareTo, equals, hashCode, toString
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReference
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
-
-
-
Field Detail
-
definingClass
@Nonnull protected final java.lang.String definingClass
-
name
@Nonnull protected final java.lang.String name
-
parameters
@Nonnull protected final com.google.common.collect.ImmutableList<java.lang.String> parameters
-
returnType
@Nonnull protected final java.lang.String returnType
-
-
Constructor Detail
-
ImmutableMethodReference
public ImmutableMethodReference(@Nonnull java.lang.String definingClass, @Nonnull java.lang.String name, @Nullable java.lang.Iterable<? extends java.lang.CharSequence> parameters, @Nonnull java.lang.String returnType)
-
ImmutableMethodReference
public ImmutableMethodReference(@Nonnull java.lang.String definingClass, @Nonnull java.lang.String name, @Nullable com.google.common.collect.ImmutableList<java.lang.String> parameters, @Nonnull java.lang.String returnType)
-
-
Method Detail
-
of
@Nonnull public static ImmutableMethodReference of(@Nonnull MethodReference methodReference)
-
getDefiningClass
@Nonnull public java.lang.String getDefiningClass()
Description copied from interface:MethodReference
Gets the type of the class that defines the referenced method.- Specified by:
getDefiningClass
in interfaceMethodReference
- Returns:
- The type of the class that defines the referenced method
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:MethodReference
Gets the name of the referenced method.- Specified by:
getName
in interfaceMethodReference
- Returns:
- The name of the referenced method
-
getParameterTypes
@Nonnull public com.google.common.collect.ImmutableList<java.lang.String> getParameterTypes()
Description copied from interface:MethodReference
Gets a list of the types of the parameters of this method.- Specified by:
getParameterTypes
in interfaceMethodReference
- Returns:
- A list of the parameter types of this method, as strings.
-
getReturnType
@Nonnull public java.lang.String getReturnType()
Description copied from interface:MethodReference
Gets the return type of the referenced method.- Specified by:
getReturnType
in interfaceMethodReference
- Returns:
- The return type of the referenced method.
-
-