Package spoon.reflect.code
Enum BinaryOperatorKind
- All Implemented Interfaces:
Serializable
,Comparable<BinaryOperatorKind>
This enumeration defines all the kinds of binary operators.
-
Enum Constant Summary
Enum ConstantDescriptionLogical and.Bit to bit and.Bit to bit or.Bit to bit xor.Division.Equality.Greater or equal comparison.Greater than comparison.Instanceof (OO specific).Lower or equal comparison.Lower than comparison.Substraction.Modulo.Multiplication.Inequality.Logical or.Addition.Shift left.Shift right.Unsigned shift right. -
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryOperatorKind
Returns the enum constant of this type with the specified name.static BinaryOperatorKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OR
Logical or. -
AND
Logical and. -
BITOR
Bit to bit or. -
BITXOR
Bit to bit xor. -
BITAND
Bit to bit and. -
EQ
Equality. -
NE
Inequality. -
LT
Lower than comparison. -
GT
Greater than comparison. -
LE
Lower or equal comparison. -
GE
Greater or equal comparison. -
SL
Shift left. -
SR
Shift right. -
USR
Unsigned shift right. -
PLUS
Addition. -
MINUS
Substraction. -
MUL
Multiplication. -
DIV
Division. -
MOD
Modulo. -
INSTANCEOF
Instanceof (OO specific).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-