Package org.teavm.ast
Enum BinaryOperation
- java.lang.Object
-
- java.lang.Enum<BinaryOperation>
-
- org.teavm.ast.BinaryOperation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BinaryOperation>
public enum BinaryOperation extends java.lang.Enum<BinaryOperation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDANDBITWISE_ANDBITWISE_ORBITWISE_XORCOMPAREDIVIDEEQUALSGREATERGREATER_OR_EQUALSLEFT_SHIFTLESSLESS_OR_EQUALSMODULOMULTIPLYNOT_EQUALSORRIGHT_SHIFTSUBTRACTUNSIGNED_RIGHT_SHIFT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BinaryOperationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BinaryOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final BinaryOperation ADD
-
SUBTRACT
public static final BinaryOperation SUBTRACT
-
MULTIPLY
public static final BinaryOperation MULTIPLY
-
DIVIDE
public static final BinaryOperation DIVIDE
-
MODULO
public static final BinaryOperation MODULO
-
EQUALS
public static final BinaryOperation EQUALS
-
NOT_EQUALS
public static final BinaryOperation NOT_EQUALS
-
LESS
public static final BinaryOperation LESS
-
LESS_OR_EQUALS
public static final BinaryOperation LESS_OR_EQUALS
-
GREATER
public static final BinaryOperation GREATER
-
GREATER_OR_EQUALS
public static final BinaryOperation GREATER_OR_EQUALS
-
AND
public static final BinaryOperation AND
-
OR
public static final BinaryOperation OR
-
COMPARE
public static final BinaryOperation COMPARE
-
BITWISE_AND
public static final BinaryOperation BITWISE_AND
-
BITWISE_OR
public static final BinaryOperation BITWISE_OR
-
BITWISE_XOR
public static final BinaryOperation BITWISE_XOR
-
LEFT_SHIFT
public static final BinaryOperation LEFT_SHIFT
-
RIGHT_SHIFT
public static final BinaryOperation RIGHT_SHIFT
-
UNSIGNED_RIGHT_SHIFT
public static final BinaryOperation UNSIGNED_RIGHT_SHIFT
-
-
Method Detail
-
values
public static BinaryOperation[] 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 (BinaryOperation c : BinaryOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryOperation valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-