Class ClassFile.EnumConstValue

  • All Implemented Interfaces:
    ClassFile.ElementValue
    Enclosing class:
    ClassFile

    public static final class ClassFile.EnumConstValue
    extends java.lang.Object
    implements ClassFile.ElementValue
    Representation of the "enum_const_value" element in the "element_value" structure.
    • Field Detail

      • typeNameIndex

        public final short typeNameIndex
        type_name_index; index of a ClassFile.ConstantUtf8Info representing a field descriptor.
      • constNameIndex

        public final short constNameIndex
        const_name_index; index of a ClassFile.ConstantUtf8Info giveing the simple name of the enum constant represented by this element_value structure.
    • Constructor Detail

      • EnumConstValue

        public EnumConstValue​(short typeNameIndex,
                              short constNameIndex)
        Parameters:
        typeNameIndex - type_name_index; index of a ClassFile.ConstantUtf8Info representing a field descriptor
        constNameIndex - const_name_index; index of a ClassFile.ConstantUtf8Info giveing the simple name of the enum constant represented by this element_value structure