Package com.tonic.analysis.instruction
Enum LdcInstruction.ConstantType
- java.lang.Object
-
- java.lang.Enum<LdcInstruction.ConstantType>
-
- com.tonic.analysis.instruction.LdcInstruction.ConstantType
-
- All Implemented Interfaces:
Serializable,Comparable<LdcInstruction.ConstantType>
- Enclosing class:
- LdcInstruction
public static enum LdcInstruction.ConstantType extends Enum<LdcInstruction.ConstantType>
The kinds of constant-pool entry an ldc-family instruction can load.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSACONSTANT_Classentry, loaded as a class literal reference.DOUBLEACONSTANT_Doubleentry, occupying two stack words.DYNAMICACONSTANT_Dynamicentry, whose value and stack width are decided by its bootstrap method and descriptor.FLOATACONSTANT_Floatentry, occupying one stack word.INTEGERACONSTANT_Integerentry, occupying one stack word.LONGACONSTANT_Longentry, occupying two stack words.METHOD_HANDLEACONSTANT_MethodHandleentry, loaded as a direct handle to a field or method.METHOD_TYPEACONSTANT_MethodTypeentry, loaded as an erased method signature.STRINGACONSTANT_Stringentry, loaded as an interned string reference.UNKNOWNThe index is out of range or names an entry kind the ldc family cannot load.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LdcInstruction.ConstantTypevalueOf(String name)Returns the enum constant of this type with the specified name.static LdcInstruction.ConstantType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final LdcInstruction.ConstantType INTEGER
ACONSTANT_Integerentry, occupying one stack word.
-
FLOAT
public static final LdcInstruction.ConstantType FLOAT
ACONSTANT_Floatentry, occupying one stack word.
-
LONG
public static final LdcInstruction.ConstantType LONG
ACONSTANT_Longentry, occupying two stack words.
-
DOUBLE
public static final LdcInstruction.ConstantType DOUBLE
ACONSTANT_Doubleentry, occupying two stack words.
-
STRING
public static final LdcInstruction.ConstantType STRING
ACONSTANT_Stringentry, loaded as an interned string reference.
-
CLASS
public static final LdcInstruction.ConstantType CLASS
ACONSTANT_Classentry, loaded as a class literal reference.
-
METHOD_HANDLE
public static final LdcInstruction.ConstantType METHOD_HANDLE
ACONSTANT_MethodHandleentry, loaded as a direct handle to a field or method.
-
METHOD_TYPE
public static final LdcInstruction.ConstantType METHOD_TYPE
ACONSTANT_MethodTypeentry, loaded as an erased method signature.
-
DYNAMIC
public static final LdcInstruction.ConstantType DYNAMIC
ACONSTANT_Dynamicentry, whose value and stack width are decided by its bootstrap method and descriptor.
-
UNKNOWN
public static final LdcInstruction.ConstantType UNKNOWN
The index is out of range or names an entry kind the ldc family cannot load.
-
-
Method Detail
-
values
public static LdcInstruction.ConstantType[] 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 (LdcInstruction.ConstantType c : LdcInstruction.ConstantType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LdcInstruction.ConstantType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-