Package org.teavm.model
Enum MethodHandleType
- java.lang.Object
-
- java.lang.Enum<MethodHandleType>
-
- org.teavm.model.MethodHandleType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MethodHandleType>
public enum MethodHandleType extends java.lang.Enum<MethodHandleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GET_FIELDGET_STATIC_FIELDINVOKE_CONSTRUCTORINVOKE_INTERFACEINVOKE_SPECIALINVOKE_STATICINVOKE_VIRTUALPUT_FIELDPUT_STATIC_FIELD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetReferenceKind()static MethodHandleTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MethodHandleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET_FIELD
public static final MethodHandleType GET_FIELD
-
GET_STATIC_FIELD
public static final MethodHandleType GET_STATIC_FIELD
-
PUT_FIELD
public static final MethodHandleType PUT_FIELD
-
PUT_STATIC_FIELD
public static final MethodHandleType PUT_STATIC_FIELD
-
INVOKE_VIRTUAL
public static final MethodHandleType INVOKE_VIRTUAL
-
INVOKE_STATIC
public static final MethodHandleType INVOKE_STATIC
-
INVOKE_SPECIAL
public static final MethodHandleType INVOKE_SPECIAL
-
INVOKE_CONSTRUCTOR
public static final MethodHandleType INVOKE_CONSTRUCTOR
-
INVOKE_INTERFACE
public static final MethodHandleType INVOKE_INTERFACE
-
-
Method Detail
-
values
public static MethodHandleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodHandleType c : MethodHandleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodHandleType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getReferenceKind
public int getReferenceKind()
-
-