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 DexBackedDexFile
dexFile
-
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.String
getReturnType()
Gets the return type of the referenced method prototype.int
getSize()
Calculate and return the private size of a method proto.void
validateReference()
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:MethodProtoReference
Gets 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:MethodProtoReference
Gets 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.InvalidReferenceException
Description copied from interface:Reference
Verifies that this reference is valid.- Specified by:
validateReference
in interfaceReference
- Overrides:
validateReference
in classBaseReference
- Throws:
Reference.InvalidReferenceException
- If the reference is not valid.
-
-