Package org.openjdk.asmtools.jasm
Enum Class ClassFileConst.ConstType
- All Implemented Interfaces:
Serializable
,Comparable<ClassFileConst.ConstType>
,Constable
- Enclosing class:
- ClassFileConst
A (typed) tag (constant) representing the type of Constant in the Constant Pool.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassFileConst.AnnotationElementType
static final int
private final String
private final String
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ConstType
(int val, String printVal, String parseKey, ClassFileConst.AnnotationElementType annotationElementType) -
Method Summary
Modifier and TypeMethodDescriptionchar
The tag item uses a single ASCII character to indicate the type of the value of the element-value pair.byte
getTag()
boolean
oneOf
(ClassFileConst.ConstType... constTypes) parseKey()
void
print
(PrintWriter out) printVal()
toString()
static ClassFileConst.ConstType
Returns the enum constant of this class with the specified name.static ClassFileConst.ConstType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSTANT_UNKNOWN
-
CONSTANT_ZERO
-
CONSTANT_UTF8
-
CONSTANT_ASCIZ
-
CONSTANT_INTEGER
-
CONSTANT_INTEGER_BYTE
-
CONSTANT_INTEGER_CHAR
-
CONSTANT_INTEGER_SHORT
-
CONSTANT_INTEGER_BOOLEAN
-
CONSTANT_FLOAT
-
CONSTANT_LONG
-
CONSTANT_DOUBLE
-
CONSTANT_CLASS
-
CONSTANT_STRING
-
CONSTANT_FIELDREF
-
CONSTANT_METHODREF
-
CONSTANT_INTERFACEMETHODREF
-
CONSTANT_NAMEANDTYPE
-
CONSTANT_METHODHANDLE
-
CONSTANT_METHODTYPE
-
CONSTANT_DYNAMIC
-
CONSTANT_INVOKEDYNAMIC
-
CONSTANT_MODULE
-
CONSTANT_PACKAGE
-
-
Field Details
-
maxTag
public static final int maxTag- See Also:
-
tag
private final int tag -
printVal
-
parseKey
-
annotationElementType
-
-
Constructor Details
-
ConstType
private ConstType(int val, String printVal, String parseKey, ClassFileConst.AnnotationElementType annotationElementType)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
oneOf
-
getAnnotationElementTypeValue
public char getAnnotationElementTypeValue()The tag item uses a single ASCII character to indicate the type of the value of the element-value pair. This determines which item of the value union is in use. Table 4.7.16.1-A shows the valid characters for the tag item.- Returns:
- a single ASCII character
-
getTag
public byte getTag() -
parseKey
-
printVal
-
print
-
toString
- Overrides:
toString
in classEnum<ClassFileConst.ConstType>
-