Package com.strobel.reflection.emit
Enum ConstantPool.Tag
- java.lang.Object
-
- java.lang.Enum<ConstantPool.Tag>
-
- com.strobel.reflection.emit.ConstantPool.Tag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConstantPool.Tag>
- Enclosing class:
- ConstantPool
public static enum ConstantPool.Tag extends java.lang.Enum<ConstantPool.Tag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DoubleConstant
FieldReference
FloatConstant
IntegerConstant
InterfaceMethodReference
InvokeDynamicInfo
LongConstant
MethodHandle
MethodReference
MethodType
NameAndTypeDescriptor
StringConstant
TypeInfo
Utf8StringConstant
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
Tag(int value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConstantPool.Tag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConstantPool.Tag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Utf8StringConstant
public static final ConstantPool.Tag Utf8StringConstant
-
IntegerConstant
public static final ConstantPool.Tag IntegerConstant
-
FloatConstant
public static final ConstantPool.Tag FloatConstant
-
LongConstant
public static final ConstantPool.Tag LongConstant
-
DoubleConstant
public static final ConstantPool.Tag DoubleConstant
-
TypeInfo
public static final ConstantPool.Tag TypeInfo
-
StringConstant
public static final ConstantPool.Tag StringConstant
-
FieldReference
public static final ConstantPool.Tag FieldReference
-
MethodReference
public static final ConstantPool.Tag MethodReference
-
InterfaceMethodReference
public static final ConstantPool.Tag InterfaceMethodReference
-
NameAndTypeDescriptor
public static final ConstantPool.Tag NameAndTypeDescriptor
-
MethodHandle
public static final ConstantPool.Tag MethodHandle
-
MethodType
public static final ConstantPool.Tag MethodType
-
InvokeDynamicInfo
public static final ConstantPool.Tag InvokeDynamicInfo
-
-
Method Detail
-
values
public static ConstantPool.Tag[] 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 (ConstantPool.Tag c : ConstantPool.Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstantPool.Tag 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
-
-