public enum ConstantType extends java.lang.Enum<ConstantType>
| Enum Constant and Description |
|---|
CLASS |
DOUBLE |
DYNAMIC |
FIELD_REF |
FLOAT |
INTEGER |
INTERFACE_METHOD_REF |
INVOKE_DYNAMIC |
LONG |
METHOD_HANDLE |
METHOD_REF |
METHOD_TYPE |
MODULE |
NAME_AND_TYPE |
PACKAGE |
STRING |
UTF8 |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataSize() |
byte |
getTag() |
static ConstantType |
getTypeByTag(int tag) |
static ConstantType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConstantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstantType UTF8
public static final ConstantType INTEGER
public static final ConstantType FLOAT
public static final ConstantType LONG
public static final ConstantType DOUBLE
public static final ConstantType CLASS
public static final ConstantType STRING
public static final ConstantType FIELD_REF
public static final ConstantType METHOD_REF
public static final ConstantType INTERFACE_METHOD_REF
public static final ConstantType NAME_AND_TYPE
public static final ConstantType METHOD_HANDLE
public static final ConstantType METHOD_TYPE
public static final ConstantType DYNAMIC
public static final ConstantType INVOKE_DYNAMIC
public static final ConstantType MODULE
public static final ConstantType PACKAGE
public static ConstantType[] values()
for (ConstantType c : ConstantType.values()) System.out.println(c);
public static ConstantType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ConstantType getTypeByTag(int tag)
public byte getTag()
public int getDataSize()