Class EnumConst


  • public class EnumConst
    extends Object
    An enum constant used as an annotation value: its type and constant name indices.
    • Constructor Detail

      • EnumConst

        public EnumConst​(ConstPool constPool,
                         int typeNameIndex,
                         int constNameIndex)
        Creates an enum constant reference.
        Parameters:
        constPool - the pool used to resolve indices
        typeNameIndex - constant-pool index of the enum type descriptor Utf8
        constNameIndex - constant-pool index of the constant name Utf8
    • Method Detail

      • getTypeNameIndex

        public int getTypeNameIndex()
        Returns:
        the type name index
      • getConstNameIndex

        public int getConstNameIndex()
        Returns:
        the const name index