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 Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassFileConst.AnnotationElementTypeprivate final booleanstatic final intprivate final Stringprivate final Stringprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstType(int tag, String printVal, String parseKey, ClassFileConst.AnnotationElementType annotationElementType, boolean isBsmType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(ClassFileConst.ConstType other) charThe tag item uses a single ASCII character to indicate the type of the value of the element-value pair.bytegetTag()booleanoneOf(ClassFileConst.ConstType... constTypes) parseKey()voidprint(PrintWriter out) printVal()toString()static ClassFileConst.ConstTypeReturns 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_INT
-
CONSTANT_BYTE
-
CONSTANT_C_BYTE
-
CONSTANT_CHAR
-
CONSTANT_C_CHAR
-
CONSTANT_SHORT
-
CONSTANT_C_SHORT
-
CONSTANT_BOOLEAN
-
CONSTANT_C_BOOLEAN
-
CONSTANT_C_FLOAT
-
CONSTANT_FLOAT
-
CONSTANT_C_LONG
-
CONSTANT_LONG
-
CONSTANT_C_DOUBLE
-
CONSTANT_DOUBLE
-
CONSTANT_C_CLASS
-
CONSTANT_CLASS
-
CONSTANT_STRING
-
CONSTANT_L_STRING
-
CONSTANT_FIELD
-
CONSTANT_FIELDREF
-
CONSTANT_METHOD
-
CONSTANT_METHODREF
-
CONSTANT_INTERFACEMETHOD
-
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
-
isBsmType
private final boolean isBsmType
-
-
Constructor Details
-
ConstType
private ConstType(int tag, String printVal, String parseKey, ClassFileConst.AnnotationElementType annotationElementType, boolean isBsmType)
-
-
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
-
equals
-
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:
toStringin classEnum<ClassFileConst.ConstType>
-