public static enum ConstantStructure.StructureType extends java.lang.Enum<ConstantStructure.StructureType>
ConstantStructure
.Enum Constant and Description |
---|
CLASS |
DOUBLE |
FIELD_REF |
FLOAT |
INTEGER |
INTERFACE_METHOD_REF |
INVOKE_DYNAMIC |
LONG |
METHOD_HANDLE |
METHOD_REF |
METHOD_TYPE |
NAME_AND_TYPE |
STRING |
UTF_8 |
Modifier and Type | Method and Description |
---|---|
static ConstantStructure.StructureType |
fromTag(byte tag)
Gets the
ConstantStructure.StructureType associated with the given byte tag. |
int |
getLength()
Gets the expected length of structures of this type.
|
byte |
getTag()
Gets the tag internally associated with this structure type.
|
static ConstantStructure.StructureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConstantStructure.StructureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstantStructure.StructureType UTF_8
public static final ConstantStructure.StructureType INTEGER
public static final ConstantStructure.StructureType FLOAT
public static final ConstantStructure.StructureType LONG
public static final ConstantStructure.StructureType DOUBLE
public static final ConstantStructure.StructureType CLASS
public static final ConstantStructure.StructureType STRING
public static final ConstantStructure.StructureType FIELD_REF
public static final ConstantStructure.StructureType METHOD_REF
public static final ConstantStructure.StructureType INTERFACE_METHOD_REF
public static final ConstantStructure.StructureType NAME_AND_TYPE
public static final ConstantStructure.StructureType METHOD_HANDLE
public static final ConstantStructure.StructureType METHOD_TYPE
public static final ConstantStructure.StructureType INVOKE_DYNAMIC
public static ConstantStructure.StructureType[] values()
for (ConstantStructure.StructureType c : ConstantStructure.StructureType.values()) System.out.println(c);
public static ConstantStructure.StructureType 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 byte getTag()
public int getLength()
public static ConstantStructure.StructureType fromTag(byte tag)
ConstantStructure.StructureType
associated with the given byte tag.tag
- The tag to get a ConstantStructure.StructureType
forConstantStructure.StructureType
associated with the given byte tag