Class DexBackedMethodReference
java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseMethodReference
org.jf.dexlib2.dexbacked.reference.DexBackedMethodReference
- All Implemented Interfaces:
Comparable<MethodReference>,MethodReference,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 the type of the class that defines the referenced method.getName()Gets the name of the referenced method.Gets a list of the types of the parameters of this method.private intGets the return type of the referenced method.intgetSize()Calculate and return the private size of a method reference.voidVerifies that this reference is valid.Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodReference
compareTo, equals, hashCode, toString
-
Field Details
-
dexFile
-
methodIndex
private final int methodIndex -
protoIdItemOffset
private int protoIdItemOffset
-
-
Constructor Details
-
DexBackedMethodReference
-
-
Method Details
-
getDefiningClass
Description copied from interface:MethodReferenceGets the type of the class that defines the referenced method.- Returns:
- The type of the class that defines the referenced method
-
getName
Description copied from interface:MethodReferenceGets the name of the referenced method.- Returns:
- The name of the referenced method
-
getParameterTypes
Description copied from interface:MethodReferenceGets a list of the types of the parameters of this method.- Returns:
- A list of the parameter types of this method, as strings.
-
getReturnType
Description copied from interface:MethodReferenceGets the return type of the referenced method.- Returns:
- The return type of the referenced method.
-
getProtoIdItemOffset
private int getProtoIdItemOffset() -
getSize
public int getSize()Calculate and return the private size of a method reference. Calculated as: class_idx + proto_idx + name_idx- 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.
-