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
Method handle types. Retrieved via
IDexMethodHandle.getMethodHandleType().
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDEX method handle typeinstance-get.DEX method handle typeinstance-put.DEX method handle typeinvoke-constructor.DEX method handle typeinvoke-direct.DEX method handle typeinvoke-instance.DEX method handle typeinvoke-interface.DEX method handle typeinvoke-static.DEX method handle typestatic-get.DEX method handle typestatic-put. -
Method Summary
Modifier and TypeMethodDescriptionstatic DexMethodHandleTypeget(int id) Retrieve a method handle type by id.intgetId()Get the Dex method handle type id.booleanDetermine whether this method handle type references a field access.booleanDetermine whether this method handle type references a field getter.booleanDetermine whether this method handle type references a field setter.booleanDetermine whether this method handle type references a method invocation.toString()static DexMethodHandleTypeReturns the enum constant of this class with the specified name.static DexMethodHandleType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATIC_PUT
DEX method handle typestatic-put. -
STATIC_GET
DEX method handle typestatic-get. -
INSTANCE_PUT
DEX method handle typeinstance-put. -
INSTANCE_GET
DEX method handle typeinstance-get. -
INVOKE_STATIC
DEX method handle typeinvoke-static. -
INVOKE_INSTANCE
DEX method handle typeinvoke-instance. -
INVOKE_CONSTRUCTOR
DEX method handle typeinvoke-constructor. -
INVOKE_DIRECT
DEX method handle typeinvoke-direct. -
INVOKE_INTERFACE
DEX method handle typeinvoke-interface.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getId
public int getId()Get the Dex method handle type id.- Returns:
- the type id
-
toString
- Overrides:
toStringin classEnum<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
Retrieve a method handle type by id.- Parameters:
id- the method handle type id- Returns:
- the matching method handle type
-