Enum ValueTag

    • Enum Constant Detail

      • INT

        public static final ValueTag INT
        A 32-bit signed integer occupying one slot.
      • LONG

        public static final ValueTag LONG
        A 64-bit signed integer occupying two slots.
      • FLOAT

        public static final ValueTag FLOAT
        A 32-bit floating point value occupying one slot.
      • DOUBLE

        public static final ValueTag DOUBLE
        A 64-bit floating point value occupying two slots.
      • REFERENCE

        public static final ValueTag REFERENCE
        A non-null pointer to an object or array on the interpreter heap, occupying one slot.
      • NULL

        public static final ValueTag NULL
        The null reference occupying one slot, tagged apart from REFERENCE so an absent instance needs no heap object.
      • RETURN_ADDRESS

        public static final ValueTag RETURN_ADDRESS
        A jsr return address occupying one slot; produced only by the legacy subroutine opcodes.
    • Method Detail

      • values

        public static ValueTag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ValueTag c : ValueTag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ValueTag valueOf​(String name)
        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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getCategory

        public int getCategory()
        Returns:
        the category
      • isWide

        public boolean isWide()
        Returns:
        true for the category 2 types long and double, which occupy two slots