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:
java.lang.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 Modifier and Type Field Description protected com.google.common.collect.ImmutableList<java.lang.String>
parameters
protected java.lang.String
returnType
-
Constructor Summary
Constructors Constructor Description ImmutableMethodProtoReference(com.google.common.collect.ImmutableList<java.lang.String> parameters, java.lang.String returnType)
ImmutableMethodProtoReference(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.util.List<? extends java.lang.CharSequence>
getParameterTypes()
Gets a list of the types of the parameters of this method prototype.java.lang.String
getReturnType()
Gets the return type of the referenced method prototype.static ImmutableMethodProtoReference
of(MethodProtoReference methodProtoReference)
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodProtoReference
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
-
-
-
-
Constructor Detail
-
ImmutableMethodProtoReference
public ImmutableMethodProtoReference(@Nullable com.google.common.collect.ImmutableList<java.lang.String> parameters, @Nonnull java.lang.String returnType)
-
ImmutableMethodProtoReference
public ImmutableMethodProtoReference(@Nullable java.lang.Iterable<? extends java.lang.CharSequence> parameters, @Nonnull java.lang.String returnType)
-
-
Method Detail
-
of
@Nonnull public static ImmutableMethodProtoReference of(@Nonnull MethodProtoReference methodProtoReference)
-
getParameterTypes
public java.util.List<? extends java.lang.CharSequence> getParameterTypes()
Description copied from interface:MethodProtoReference
Gets a list of the types of the parameters of this method prototype.- Specified by:
getParameterTypes
in interfaceMethodProtoReference
- Returns:
- A list of the parameter types of this method prototype, as strings.
-
getReturnType
public java.lang.String getReturnType()
Description copied from interface:MethodProtoReference
Gets the return type of the referenced method prototype.- Specified by:
getReturnType
in interfaceMethodProtoReference
- Returns:
- The return type of the referenced method prototype.
-
-