Package com.tonic.analysis.ssa.ir
Enum BinaryOp
- java.lang.Object
-
- java.lang.Enum<BinaryOp>
-
- com.tonic.analysis.ssa.ir.BinaryOp
-
- All Implemented Interfaces:
Serializable,Comparable<BinaryOp>
public enum BinaryOp extends Enum<BinaryOp>
Binary operation types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDAddition.ANDBitwise AND.DCMPGDouble comparison (greater on NaN).DCMPLDouble comparison (less on NaN).DIVDivision.FCMPGFloat comparison (greater on NaN).FCMPLFloat comparison (less on NaN).LCMPLong comparison.MULMultiplication.ORBitwise OR.REMRemainder (modulo).SHLShift left.SHRArithmetic shift right.SUBSubtraction.USHRLogical shift right (unsigned).XORBitwise XOR.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BinaryOpvalueOf(String name)Returns the enum constant of this type with the specified name.static BinaryOp[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
-