Enum Class DexMethodHandleType

java.lang.Object
java.lang.Enum<DexMethodHandleType>
com.pnfsoftware.jeb.core.units.code.android.dex.DexMethodHandleType
All Implemented Interfaces:
Serializable, Comparable<DexMethodHandleType>, Constable

public enum DexMethodHandleType extends Enum<DexMethodHandleType>
Method handle types. Retrieved via IDexMethodHandle.getMethodHandleType().

Reference.

  • Enum Constant Details

    • STATIC_PUT

      public static final DexMethodHandleType STATIC_PUT
      DEX method handle type static-put.
    • STATIC_GET

      public static final DexMethodHandleType STATIC_GET
      DEX method handle type static-get.
    • INSTANCE_PUT

      public static final DexMethodHandleType INSTANCE_PUT
      DEX method handle type instance-put.
    • INSTANCE_GET

      public static final DexMethodHandleType INSTANCE_GET
      DEX method handle type instance-get.
    • INVOKE_STATIC

      public static final DexMethodHandleType INVOKE_STATIC
      DEX method handle type invoke-static.
    • INVOKE_INSTANCE

      public static final DexMethodHandleType INVOKE_INSTANCE
      DEX method handle type invoke-instance.
    • INVOKE_CONSTRUCTOR

      public static final DexMethodHandleType INVOKE_CONSTRUCTOR
      DEX method handle type invoke-constructor.
    • INVOKE_DIRECT

      public static final DexMethodHandleType INVOKE_DIRECT
      DEX method handle type invoke-direct.
    • INVOKE_INTERFACE

      public static final DexMethodHandleType INVOKE_INTERFACE
      DEX method handle type invoke-interface.
  • Method Details

    • values

      public static DexMethodHandleType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DexMethodHandleType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Get the Dex method handle type id.
      Returns:
      the type id
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DexMethodHandleType>
    • isMethodInvoker

      public boolean isMethodInvoker()
      Determine whether this method handle type references a method invocation.
      Returns:
      true if this is an invoke method handle type
    • isFieldSetter

      public boolean isFieldSetter()
      Determine whether this method handle type references a field setter.
      Returns:
      true if this is a field setter method handle type
    • isFieldGetter

      public boolean isFieldGetter()
      Determine whether this method handle type references a field getter.
      Returns:
      true if this is a field getter method handle type
    • isFieldAccessor

      public boolean isFieldAccessor()
      Determine whether this method handle type references a field access.
      Returns:
      true if this is a field getter or setter method handle type
    • get

      public static DexMethodHandleType get(int id)
      Retrieve a method handle type by id.
      Parameters:
      id - the method handle type id
      Returns:
      the matching method handle type