public enum ConstantType extends Enum<ConstantType>
Enum Constant and Description |
---|
CLASS |
DOUBLE |
FIELD_REF |
FLOAT |
INTEGER |
INTERFACE_METHOD_REF |
LONG |
METHOD_REF |
NAME_AND_TYPE |
STRING |
UTF8 |
Modifier and Type | Field and Description |
---|---|
int |
tag
Constant pool tag
|
Class |
valueType
The type of the constant object this kind will produce.
|
Modifier and Type | Method and Description |
---|---|
static ConstantType |
fromTag(int tag) |
static ConstantType |
valueOf(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 CLASS
public static final ConstantType NAME_AND_TYPE
public static final ConstantType FIELD_REF
public static final ConstantType METHOD_REF
public static final ConstantType INTERFACE_METHOD_REF
public static final ConstantType STRING
public static final ConstantType INTEGER
public static final ConstantType FLOAT
public static final ConstantType LONG
public static final ConstantType DOUBLE
public final Class valueType
public final int tag
public static ConstantType[] values()
for (ConstantType c : ConstantType.values()) System.out.println(c);
public static ConstantType 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 nullpublic static ConstantType fromTag(int tag)
Copyright © 2016. All rights reserved.