Package 

Enum ConstantType

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable , org.gjt.jclasslib.structures.ClassFileEnum

    
    public enum ConstantType
    extends Enum<ConstantType> implements ClassFileEnum
                        

    Describes all different constant types in the constant pool of a class file.

    • Constructor Detail

    • Method Detail

      • read

         final Constant read(ClassFile classFile, DataInput input)

        Read the corresponding constant pool structure from the input stream.

        Parameters:
        classFile - the class file of which this structure is part of
        input - the input stream from which to read the structure.
      • toString

         String toString()

        Verbose description of the constant type.

      • valueOf

         final ConstantType valueOf(String value)

        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.)

      • values

         final Array<ConstantType> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.

      • getTag

         Integer getTag()

        The bytecode tag representing the enum value.

      • getVerbose

         final String getVerbose()

        the name of the constant type as used in the class file format spec

      • getSize

         final Integer getSize()

        the fixed extra size of the constant pool entry