Enum ConstantPoolEntry.Type
- java.lang.Object
-
- java.lang.Enum<ConstantPoolEntry.Type>
-
- org.benf.cfr.reader.entities.constantpool.ConstantPoolEntry.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConstantPoolEntry.Type>
- Enclosing interface:
- ConstantPoolEntry
public static enum ConstantPoolEntry.Type extends java.lang.Enum<ConstantPoolEntry.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CPT_Class
CPT_Double
CPT_DynamicInfo
CPT_FieldRef
CPT_Float
CPT_Integer
CPT_InterfaceMethodRef
CPT_InvokeDynamic
CPT_Long
CPT_MethodHandle
CPT_MethodRef
CPT_MethodType
CPT_ModuleInfo
CPT_NameAndType
CPT_PackageInfo
CPT_String
CPT_UTF8
-
Field Summary
Fields Modifier and Type Field Description private static byte
VAL_Class
private static byte
VAL_Double
private static byte
VAL_DynamicInfo
private static byte
VAL_FieldRef
private static byte
VAL_Float
private static byte
VAL_Integer
private static byte
VAL_InterfaceMethodRef
private static byte
VAL_InvokeDynamic
private static byte
VAL_Long
private static byte
VAL_MethodHandle
private static byte
VAL_MethodRef
private static byte
VAL_MethodType
private static byte
VAL_ModuleInfo
private static byte
VAL_NameAndType
private static byte
VAL_PackageInfo
private static byte
VAL_String
private static byte
VAL_UTF8
-
Constructor Summary
Constructors Modifier Constructor Description private
Type()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConstantPoolEntry.Type
get(byte val)
static ConstantPoolEntry.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConstantPoolEntry.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CPT_UTF8
public static final ConstantPoolEntry.Type CPT_UTF8
-
CPT_Integer
public static final ConstantPoolEntry.Type CPT_Integer
-
CPT_Float
public static final ConstantPoolEntry.Type CPT_Float
-
CPT_Long
public static final ConstantPoolEntry.Type CPT_Long
-
CPT_Double
public static final ConstantPoolEntry.Type CPT_Double
-
CPT_Class
public static final ConstantPoolEntry.Type CPT_Class
-
CPT_String
public static final ConstantPoolEntry.Type CPT_String
-
CPT_FieldRef
public static final ConstantPoolEntry.Type CPT_FieldRef
-
CPT_MethodRef
public static final ConstantPoolEntry.Type CPT_MethodRef
-
CPT_InterfaceMethodRef
public static final ConstantPoolEntry.Type CPT_InterfaceMethodRef
-
CPT_NameAndType
public static final ConstantPoolEntry.Type CPT_NameAndType
-
CPT_MethodHandle
public static final ConstantPoolEntry.Type CPT_MethodHandle
-
CPT_MethodType
public static final ConstantPoolEntry.Type CPT_MethodType
-
CPT_DynamicInfo
public static final ConstantPoolEntry.Type CPT_DynamicInfo
-
CPT_InvokeDynamic
public static final ConstantPoolEntry.Type CPT_InvokeDynamic
-
CPT_ModuleInfo
public static final ConstantPoolEntry.Type CPT_ModuleInfo
-
CPT_PackageInfo
public static final ConstantPoolEntry.Type CPT_PackageInfo
-
-
Field Detail
-
VAL_UTF8
private static final byte VAL_UTF8
- See Also:
- Constant Field Values
-
VAL_Integer
private static final byte VAL_Integer
- See Also:
- Constant Field Values
-
VAL_Float
private static final byte VAL_Float
- See Also:
- Constant Field Values
-
VAL_Long
private static final byte VAL_Long
- See Also:
- Constant Field Values
-
VAL_Double
private static final byte VAL_Double
- See Also:
- Constant Field Values
-
VAL_Class
private static final byte VAL_Class
- See Also:
- Constant Field Values
-
VAL_String
private static final byte VAL_String
- See Also:
- Constant Field Values
-
VAL_FieldRef
private static final byte VAL_FieldRef
- See Also:
- Constant Field Values
-
VAL_MethodRef
private static final byte VAL_MethodRef
- See Also:
- Constant Field Values
-
VAL_InterfaceMethodRef
private static final byte VAL_InterfaceMethodRef
- See Also:
- Constant Field Values
-
VAL_NameAndType
private static final byte VAL_NameAndType
- See Also:
- Constant Field Values
-
VAL_MethodHandle
private static final byte VAL_MethodHandle
- See Also:
- Constant Field Values
-
VAL_MethodType
private static final byte VAL_MethodType
- See Also:
- Constant Field Values
-
VAL_DynamicInfo
private static final byte VAL_DynamicInfo
- See Also:
- Constant Field Values
-
VAL_InvokeDynamic
private static final byte VAL_InvokeDynamic
- See Also:
- Constant Field Values
-
VAL_ModuleInfo
private static final byte VAL_ModuleInfo
- See Also:
- Constant Field Values
-
VAL_PackageInfo
private static final byte VAL_PackageInfo
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ConstantPoolEntry.Type[] 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 (ConstantPoolEntry.Type c : ConstantPoolEntry.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstantPoolEntry.Type 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
-
get
public static ConstantPoolEntry.Type get(byte val)
-
-