Class DexBackedMethodHandleReference
- java.lang.Object
-
- org.jf.dexlib2.base.reference.BaseReference
-
- org.jf.dexlib2.base.reference.BaseMethodHandleReference
-
- org.jf.dexlib2.dexbacked.reference.DexBackedMethodHandleReference
-
- All Implemented Interfaces:
java.lang.Comparable<MethodHandleReference>,MethodHandleReference,Reference
public class DexBackedMethodHandleReference extends BaseMethodHandleReference
-
-
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 DexBackedDexFiledexFileintmethodHandleIndexintmethodHandleOffset
-
Constructor Summary
Constructors Constructor Description DexBackedMethodHandleReference(DexBackedDexFile dexFile, int methodHandleIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencegetMemberReference()Gets the member that is being referenced by this method handle.intgetMethodHandleType()Gets the method handle type.voidvalidateReference()Verifies that this reference is valid.-
Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodHandleReference
compareTo, equals, hashCode, toString
-
-
-
-
Field Detail
-
dexFile
@Nonnull public final DexBackedDexFile dexFile
-
methodHandleIndex
public final int methodHandleIndex
-
methodHandleOffset
public final int methodHandleOffset
-
-
Constructor Detail
-
DexBackedMethodHandleReference
public DexBackedMethodHandleReference(DexBackedDexFile dexFile, int methodHandleIndex)
-
-
Method Detail
-
getMethodHandleType
public int getMethodHandleType()
Description copied from interface:MethodHandleReferenceGets the method handle type.- Returns:
- One of the MethodHandleType values
-
getMemberReference
@Nonnull public Reference getMemberReference()
Description copied from interface:MethodHandleReferenceGets the member that is being referenced by this method handle.- Returns:
- A MethodReference or FieldReference, depending on the method handle type
-
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.
-
-