Enum BinaryOperatorType
- java.lang.Object
-
- java.lang.Enum<BinaryOperatorType>
-
- com.strobel.decompiler.languages.java.ast.BinaryOperatorType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BinaryOperatorType>
public enum BinaryOperatorType extends java.lang.Enum<BinaryOperatorType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDANYBITWISE_ANDBITWISE_ORDIVIDEEQUALITYEXCLUSIVE_ORGREATER_THANGREATER_THAN_OR_EQUALINEQUALITYLESS_THANLESS_THAN_OR_EQUALLOGICAL_ANDLOGICAL_ORMODULUSMULTIPLYSHIFT_LEFTSHIFT_RIGHTSUBTRACTUNSIGNED_SHIFT_RIGHT
-
Constructor Summary
Constructors Modifier Constructor Description privateBinaryOperatorType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisArithmetic()booleanisBitwise()booleanisCommutative()booleanisLogical()booleanisRelational()static BinaryOperatorTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BinaryOperatorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final BinaryOperatorType ANY
-
BITWISE_AND
public static final BinaryOperatorType BITWISE_AND
-
BITWISE_OR
public static final BinaryOperatorType BITWISE_OR
-
EXCLUSIVE_OR
public static final BinaryOperatorType EXCLUSIVE_OR
-
LOGICAL_AND
public static final BinaryOperatorType LOGICAL_AND
-
LOGICAL_OR
public static final BinaryOperatorType LOGICAL_OR
-
GREATER_THAN
public static final BinaryOperatorType GREATER_THAN
-
GREATER_THAN_OR_EQUAL
public static final BinaryOperatorType GREATER_THAN_OR_EQUAL
-
LESS_THAN
public static final BinaryOperatorType LESS_THAN
-
LESS_THAN_OR_EQUAL
public static final BinaryOperatorType LESS_THAN_OR_EQUAL
-
EQUALITY
public static final BinaryOperatorType EQUALITY
-
INEQUALITY
public static final BinaryOperatorType INEQUALITY
-
ADD
public static final BinaryOperatorType ADD
-
SUBTRACT
public static final BinaryOperatorType SUBTRACT
-
MULTIPLY
public static final BinaryOperatorType MULTIPLY
-
DIVIDE
public static final BinaryOperatorType DIVIDE
-
MODULUS
public static final BinaryOperatorType MODULUS
-
SHIFT_LEFT
public static final BinaryOperatorType SHIFT_LEFT
-
SHIFT_RIGHT
public static final BinaryOperatorType SHIFT_RIGHT
-
UNSIGNED_SHIFT_RIGHT
public static final BinaryOperatorType UNSIGNED_SHIFT_RIGHT
-
-
Method Detail
-
values
public static BinaryOperatorType[] 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 (BinaryOperatorType c : BinaryOperatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryOperatorType 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
-
isLogical
public final boolean isLogical()
-
isCommutative
public final boolean isCommutative()
-
isRelational
public final boolean isRelational()
-
isArithmetic
public final boolean isArithmetic()
-
isBitwise
public final boolean isBitwise()
-
-