public interface

IDexMethodHandle

com.pnfsoftware.jeb.core.units.code.android.dex.IDexMethodHandle

Class Overview

A DEX method handle pool item. Do not confuse with Java's MethodHandle - although the two are related.

Summary

Constants
int METHOD_HANDLE_TYPE_INSTANCE_GET
int METHOD_HANDLE_TYPE_INSTANCE_PUT
int METHOD_HANDLE_TYPE_INVOKE_CONSTRUCTOR
int METHOD_HANDLE_TYPE_INVOKE_DIRECT
int METHOD_HANDLE_TYPE_INVOKE_INSTANCE
int METHOD_HANDLE_TYPE_INVOKE_INTERFACE
int METHOD_HANDLE_TYPE_INVOKE_STATIC
int METHOD_HANDLE_TYPE_STATIC_GET
int METHOD_HANDLE_TYPE_STATIC_PUT
Public Methods
abstract String generate(boolean effective)
Generate a string representing the method handle.
abstract int getFieldOrMethodIndex()
Get a pool index to the handle entity: either a DexMethod or a DexField.
abstract int getMethodHandleType()
Get the type of handle.
abstract boolean isFieldAccessor()
Convenience method.
abstract boolean isFieldGetter()
Convenience method.
abstract boolean isFieldSetter()
Convenience method.
abstract boolean isMethodInvoker()
Convenience method.

Constants

public static final int METHOD_HANDLE_TYPE_INSTANCE_GET

Constant Value: 3 (0x00000003)

public static final int METHOD_HANDLE_TYPE_INSTANCE_PUT

Constant Value: 2 (0x00000002)

public static final int METHOD_HANDLE_TYPE_INVOKE_CONSTRUCTOR

Constant Value: 7 (0x00000007)

public static final int METHOD_HANDLE_TYPE_INVOKE_DIRECT

Constant Value: 6 (0x00000006)

public static final int METHOD_HANDLE_TYPE_INVOKE_INSTANCE

Constant Value: 5 (0x00000005)

public static final int METHOD_HANDLE_TYPE_INVOKE_INTERFACE

Constant Value: 8 (0x00000008)

public static final int METHOD_HANDLE_TYPE_INVOKE_STATIC

Constant Value: 4 (0x00000004)

public static final int METHOD_HANDLE_TYPE_STATIC_GET

Constant Value: 1 (0x00000001)

public static final int METHOD_HANDLE_TYPE_STATIC_PUT

Constant Value: 0 (0x00000000)

Public Methods

public abstract String generate (boolean effective)

Generate a string representing the method handle.

public abstract int getFieldOrMethodIndex ()

Get a pool index to the handle entity: either a DexMethod or a DexField.

Returns
  • a field or method index

public abstract int getMethodHandleType ()

Get the type of handle.

Returns
  • one of METHOD_HANDLE_TYPE_xxx constant.

public abstract boolean isFieldAccessor ()

Convenience method.

public abstract boolean isFieldGetter ()

Convenience method.

public abstract boolean isFieldSetter ()

Convenience method.

public abstract boolean isMethodInvoker ()

Convenience method.