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:
Comparable<MethodProtoReference>,MethodProtoReference,Reference
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a list of the types of the parameters of this method prototype.Gets the return type of the referenced method prototype.intgetSize()Calculate and return the private size of a method proto.voidVerifies that this reference is valid.Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodProtoReference
compareTo, equals, hashCode, toString
-
Field Details
-
dexFile
-
protoIndex
private final int protoIndex
-
-
Constructor Details
-
DexBackedMethodProtoReference
-
-
Method Details
-
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
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
Description 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.
-