Package com.tonic.analysis.ssa.ir
Enum UnaryOp
- java.lang.Object
-
- java.lang.Enum<UnaryOp>
-
- com.tonic.analysis.ssa.ir.UnaryOp
-
- All Implemented Interfaces:
Serializable,Comparable<UnaryOp>
public enum UnaryOp extends Enum<UnaryOp>
Unary operation types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description D2FConvert double to float.D2IConvert double to int.D2LConvert double to long.F2DConvert float to double.F2IConvert float to int.F2LConvert float to long.I2BConvert int to byte.I2CConvert int to char.I2DConvert int to double.I2FConvert int to float.I2LConvert int to long.I2SConvert int to short.L2DConvert long to double.L2FConvert long to float.L2IConvert long to int.NEGNumeric negation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnaryOpvalueOf(String name)Returns the enum constant of this type with the specified name.static UnaryOp[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEG
public static final UnaryOp NEG
Numeric negation.
-
I2L
public static final UnaryOp I2L
Convert int to long.
-
I2F
public static final UnaryOp I2F
Convert int to float.
-
I2D
public static final UnaryOp I2D
Convert int to double.
-
L2I
public static final UnaryOp L2I
Convert long to int.
-
L2F
public static final UnaryOp L2F
Convert long to float.
-
L2D
public static final UnaryOp L2D
Convert long to double.
-
F2I
public static final UnaryOp F2I
Convert float to int.
-
F2L
public static final UnaryOp F2L
Convert float to long.
-
F2D
public static final UnaryOp F2D
Convert float to double.
-
D2I
public static final UnaryOp D2I
Convert double to int.
-
D2L
public static final UnaryOp D2L
Convert double to long.
-
D2F
public static final UnaryOp D2F
Convert double to float.
-
I2B
public static final UnaryOp I2B
Convert int to byte.
-
I2C
public static final UnaryOp I2C
Convert int to char.
-
I2S
public static final UnaryOp I2S
Convert int to short.
-
-
Method Detail
-
values
public static UnaryOp[] 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 (UnaryOp c : UnaryOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnaryOp 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
-
-