Package com.strobel.assembler.ir
Enum ConstantPool.Tag
- java.lang.Object
-
- java.lang.Enum<ConstantPool.Tag>
-
- com.strobel.assembler.ir.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
-
Field Summary
Fields Modifier and Type Field Description private static ConstantPool.Tag[]
lookup
private static ConstantPool.Tag
maxTag
private static ConstantPool.Tag
minTag
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
fromValue(int value)
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
-
DynamicConstant
public static final ConstantPool.Tag DynamicConstant
-
InvokeDynamicInfo
public static final ConstantPool.Tag InvokeDynamicInfo
-
Module
public static final ConstantPool.Tag Module
-
Package
public static final ConstantPool.Tag Package
-
-
Field Detail
-
value
public final int value
-
minTag
private static final ConstantPool.Tag minTag
-
maxTag
private static final ConstantPool.Tag maxTag
-
lookup
private static final ConstantPool.Tag[] lookup
-
-
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
-
fromValue
public static ConstantPool.Tag fromValue(int value)
-
-