Package mini_java

Enum Class Binop

All Implemented Interfaces:
Serializable, Comparable<Binop>, Constable

enum Binop extends Enum<Binop>
Binary operator
  • Enum Constant Details

    • Badd

      public static final Binop Badd
    • Bsub

      public static final Binop Bsub
    • Bmul

      public static final Binop Bmul
    • Bdiv

      public static final Binop Bdiv
    • Bmod

      public static final Binop Bmod
    • Beq

      public static final Binop Beq
      + - * / %
    • Bneq

      public static final Binop Bneq
    • Blt

      public static final Binop Blt
    • Ble

      public static final Binop Ble
    • Bgt

      public static final Binop Bgt
    • Bge

      public static final Binop Bge
    • Band

      public static final Binop Band
      == != < <= > >=
    • Bor

      public static final Binop Bor
    • Badd_s

      public static final Binop Badd_s
      && ||
  • Method Details

    • values

      public static Binop[] 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 Binop 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