Enum UnaryOp

    • Enum Constant Detail

      • NEG

        public static final UnaryOp NEG
        Numeric negation.
      • I2L

        public static final UnaryOp I2L
        Convert int to long.
      • I2F

        public static final UnaryOp I2F
        Convert int to float.
      • I2D

        public static final UnaryOp I2D
        Convert int to double.
      • L2I

        public static final UnaryOp L2I
        Convert long to int.
      • L2F

        public static final UnaryOp L2F
        Convert long to float.
      • L2D

        public static final UnaryOp L2D
        Convert long to double.
      • F2I

        public static final UnaryOp F2I
        Convert float to int.
      • F2L

        public static final UnaryOp F2L
        Convert float to long.
      • F2D

        public static final UnaryOp F2D
        Convert float to double.
      • D2I

        public static final UnaryOp D2I
        Convert double to int.
      • D2L

        public static final UnaryOp D2L
        Convert double to long.
      • D2F

        public static final UnaryOp D2F
        Convert double to float.
      • I2B

        public static final UnaryOp I2B
        Convert int to byte.
      • I2C

        public static final UnaryOp I2C
        Convert int to char.
      • I2S

        public static final UnaryOp I2S
        Convert int to short.
    • Method Detail

      • values

        public static UnaryOp[] 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 (UnaryOp c : UnaryOp.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UnaryOp 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