Class DexBackedMethodProtoReference
- java.lang.Object
-
- org.jf.dexlib2.base.reference.BaseReference
-
- org.jf.dexlib2.base.reference.BaseMethodProtoReference
-
- org.jf.dexlib2.dexbacked.reference.DexBackedMethodProtoReference
-
- All Implemented Interfaces:
java.lang.Comparable<MethodProtoReference>,MethodProtoReference,Reference
public class DexBackedMethodProtoReference extends BaseMethodProtoReference
-
-
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 DexBackedDexFiledexFile
-
Constructor Summary
Constructors Constructor Description DexBackedMethodProtoReference(DexBackedDexFile dexFile, int protoIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getParameterTypes()Gets a list of the types of the parameters of this method prototype.java.lang.StringgetReturnType()Gets the return type of the referenced method prototype.intgetSize()Calculate and return the private size of a method proto.voidvalidateReference()Verifies that this reference is valid.-
Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodProtoReference
compareTo, equals, hashCode, toString
-
-
-
-
Field Detail
-
dexFile
@Nonnull public final DexBackedDexFile dexFile
-
-
Constructor Detail
-
DexBackedMethodProtoReference
public DexBackedMethodProtoReference(@Nonnull DexBackedDexFile dexFile, int protoIndex)
-
-
Method Detail
-
getParameterTypes
@Nonnull public java.util.List<java.lang.String> getParameterTypes()
Description copied from interface:MethodProtoReferenceGets a list of the types of the parameters of this method prototype.- Returns:
- A list of the parameter types of this method prototype, as strings.
-
getReturnType
@Nonnull public java.lang.String getReturnType()
Description copied from interface:MethodProtoReferenceGets the return type of the referenced method prototype.- Returns:
- The return type of the referenced method prototype.
-
getSize
public int getSize()
Calculate and return the private size of a method proto. Calculated as: shorty_idx + return_type_idx + parameters_off + type_list size- Returns:
- size in bytes
-
validateReference
public void validateReference() throws Reference.InvalidReferenceExceptionDescription copied from interface:ReferenceVerifies that this reference is valid.- Specified by:
validateReferencein interfaceReference- Overrides:
validateReferencein classBaseReference- Throws:
Reference.InvalidReferenceException- If the reference is not valid.
-
-