public static enum JavaConstant.MethodHandle.HandleType extends Enum<JavaConstant.MethodHandle.HandleType>
| Enum Constant and Description | 
|---|
GET_FIELD
A handle representing a read of a non-static field invocation. 
 | 
GET_STATIC_FIELD
A handle representing a read of a static field invocation. 
 | 
INVOKE_INTERFACE
A handle representing an invokeinterface invocation. 
 | 
INVOKE_SPECIAL
A handle representing an invokespecial invocation for a non-constructor. 
 | 
INVOKE_SPECIAL_CONSTRUCTOR
A handle representing an invokespecial invocation for a constructor. 
 | 
INVOKE_STATIC
A handle representing an invokestatic invocation. 
 | 
INVOKE_VIRTUAL
A handle representing an invokevirtual invocation. 
 | 
PUT_FIELD
A handle representing a write of a non-static field invocation. 
 | 
PUT_STATIC_FIELD
A handle representing a write of a static field invocation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getIdentifier()
Returns the represented identifier. 
 | 
boolean | 
isField()
Returns  true if this handle type represents a field handle. 
 | 
protected static JavaConstant.MethodHandle.HandleType | 
of(int identifier)
Extracts a handle type for the given identifier. 
 | 
protected static JavaConstant.MethodHandle.HandleType | 
of(MethodDescription.InDefinedShape methodDescription)
Extracts a handle type for invoking the given method. 
 | 
protected static JavaConstant.MethodHandle.HandleType | 
ofGetter(FieldDescription.InDefinedShape fieldDescription)
Extracts a handle type for a getter of the given field. 
 | 
protected static JavaConstant.MethodHandle.HandleType | 
ofSetter(FieldDescription.InDefinedShape fieldDescription)
Extracts a handle type for a setter of the given field. 
 | 
protected static JavaConstant.MethodHandle.HandleType | 
ofSpecial(MethodDescription.InDefinedShape methodDescription)
Extracts a handle type for invoking the given method via invokespecial. 
 | 
static JavaConstant.MethodHandle.HandleType | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static JavaConstant.MethodHandle.HandleType[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final JavaConstant.MethodHandle.HandleType INVOKE_VIRTUAL
public static final JavaConstant.MethodHandle.HandleType INVOKE_STATIC
public static final JavaConstant.MethodHandle.HandleType INVOKE_SPECIAL
public static final JavaConstant.MethodHandle.HandleType INVOKE_INTERFACE
public static final JavaConstant.MethodHandle.HandleType INVOKE_SPECIAL_CONSTRUCTOR
public static final JavaConstant.MethodHandle.HandleType PUT_FIELD
public static final JavaConstant.MethodHandle.HandleType GET_FIELD
public static final JavaConstant.MethodHandle.HandleType PUT_STATIC_FIELD
public static final JavaConstant.MethodHandle.HandleType GET_STATIC_FIELD
public static JavaConstant.MethodHandle.HandleType[] values()
for (JavaConstant.MethodHandle.HandleType c : JavaConstant.MethodHandle.HandleType.values()) System.out.println(c);
public static JavaConstant.MethodHandle.HandleType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected static JavaConstant.MethodHandle.HandleType of(MethodDescription.InDefinedShape methodDescription)
methodDescription - The method for which a handle type should be found.protected static JavaConstant.MethodHandle.HandleType of(int identifier)
identifier - The identifier to extract a handle type for.protected static JavaConstant.MethodHandle.HandleType ofSpecial(MethodDescription.InDefinedShape methodDescription)
methodDescription - The method for which a handle type should be found.protected static JavaConstant.MethodHandle.HandleType ofGetter(FieldDescription.InDefinedShape fieldDescription)
fieldDescription - The field for which to create a getter handle.protected static JavaConstant.MethodHandle.HandleType ofSetter(FieldDescription.InDefinedShape fieldDescription)
fieldDescription - The field for which to create a setter handle.public int getIdentifier()
public boolean isField()
Copyright © 2014–2023. All rights reserved.