Enum BinaryOp

    • Enum Constant Detail

      • ADD

        public static final BinaryOp ADD
        Addition.
      • SUB

        public static final BinaryOp SUB
        Subtraction.
      • MUL

        public static final BinaryOp MUL
        Multiplication.
      • DIV

        public static final BinaryOp DIV
        Division.
      • REM

        public static final BinaryOp REM
        Remainder (modulo).
      • SHL

        public static final BinaryOp SHL
        Shift left.
      • SHR

        public static final BinaryOp SHR
        Arithmetic shift right.
      • USHR

        public static final BinaryOp USHR
        Logical shift right (unsigned).
      • AND

        public static final BinaryOp AND
        Bitwise AND.
      • OR

        public static final BinaryOp OR
        Bitwise OR.
      • XOR

        public static final BinaryOp XOR
        Bitwise XOR.
      • LCMP

        public static final BinaryOp LCMP
        Long comparison.
      • FCMPL

        public static final BinaryOp FCMPL
        Float comparison (less on NaN).
      • FCMPG

        public static final BinaryOp FCMPG
        Float comparison (greater on NaN).
      • DCMPL

        public static final BinaryOp DCMPL
        Double comparison (less on NaN).
      • DCMPG

        public static final BinaryOp DCMPG
        Double comparison (greater on NaN).
    • Method Detail

      • values

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

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