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 DexBackedDexFile
dexFile
int
methodHandleIndex
int
methodHandleOffset
-
Constructor Summary
Constructors Constructor Description DexBackedMethodHandleReference(DexBackedDexFile dexFile, int methodHandleIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reference
getMemberReference()
Gets the member that is being referenced by this method handle.int
getMethodHandleType()
Gets the method handle type.void
validateReference()
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:MethodHandleReference
Gets the method handle type.- Returns:
- One of the MethodHandleType values
-
getMemberReference
@Nonnull public Reference getMemberReference()
Description copied from interface:MethodHandleReference
Gets 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.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.
-
-