Enum Class BinaryOp

java.lang.Object
java.lang.Enum<BinaryOp>
net.covers1624.coffeegrinder.bytecode.insns.BinaryOp
All Implemented Interfaces:
Serializable, Comparable<BinaryOp>, Constable

public enum BinaryOp extends Enum<BinaryOp>
Created by covers1624 on 9/9/21.
  • Enum Constant Details

    • ADD

      public static final BinaryOp ADD
    • SUB

      public static final BinaryOp SUB
    • MUL

      public static final BinaryOp MUL
    • DIV

      public static final BinaryOp DIV
    • REM

      public static final BinaryOp REM
    • AND

      public static final BinaryOp AND
    • OR

      public static final BinaryOp OR
    • XOR

      public static final BinaryOp XOR
    • SHIFT_LEFT

      public static final BinaryOp SHIFT_LEFT
    • SHIFT_RIGHT

      public static final BinaryOp SHIFT_RIGHT
    • LOGICAL_SHIFT_RIGHT

      public static final BinaryOp LOGICAL_SHIFT_RIGHT
  • Field Details

    • chars

      public final String chars
  • Method Details

    • values

      public static BinaryOp[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BinaryOp valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isLogic

      public boolean isLogic()