java.lang.Object
java.lang.Enum<ArithOp>
org.benf.cfr.reader.bytecode.analysis.parse.expression.ArithOp
All Implemented Interfaces:
Serializable, Comparable<ArithOp>, Constable

public enum ArithOp extends Enum<ArithOp>
  • Enum Constant Details

    • LCMP

      public static final ArithOp LCMP
    • DCMPL

      public static final ArithOp DCMPL
    • DCMPG

      public static final ArithOp DCMPG
    • FCMPL

      public static final ArithOp FCMPL
    • FCMPG

      public static final ArithOp FCMPG
    • PLUS

      public static final ArithOp PLUS
    • MINUS

      public static final ArithOp MINUS
    • MULTIPLY

      public static final ArithOp MULTIPLY
    • DIVIDE

      public static final ArithOp DIVIDE
    • REM

      public static final ArithOp REM
    • OR

      public static final ArithOp OR
    • AND

      public static final ArithOp AND
    • SHR

      public static final ArithOp SHR
    • SHL

      public static final ArithOp SHL
    • SHRU

      public static final ArithOp SHRU
    • XOR

      public static final ArithOp XOR
    • NEG

      public static final ArithOp NEG
  • Field Details

    • showAs

      private final String showAs
    • temporary

      private final boolean temporary
    • boolSafe

      private final boolean boolSafe
    • precedence

      private final Precedence precedence
  • Constructor Details

    • ArithOp

      private ArithOp(String showAs, boolean temporary, boolean boolSafe, Precedence precedence)
  • Method Details

    • values

      public static ArithOp[] 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 ArithOp 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
    • getShowAs

      public String getShowAs()
    • isTemporary

      public boolean isTemporary()
    • getPrecedence

      public Precedence getPrecedence()
    • getOpFor

      public static ArithOp getOpFor(JVMInstr instr)
    • canThrow

      public boolean canThrow(InferredJavaType inferredJavaType, ExceptionCheck caught, Set<? extends JavaTypeInstance> instances)
    • isBoolSafe

      public boolean isBoolSafe()