Module dev.civl.mc
Package dev.civl.mc.model.IF.expression
Enum Class BinaryExpression.BINARY_OPERATOR
java.lang.Object
java.lang.Enum<BinaryExpression.BINARY_OPERATOR>
dev.civl.mc.model.IF.expression.BinaryExpression.BINARY_OPERATOR
- All Implemented Interfaces:
Serializable,Comparable<BinaryExpression.BINARY_OPERATOR>,Constable
- Enclosing interface:
BinaryExpression
This defines all CIVL binary operators:
AND:
LEFT_SHIFT:
RIGHT_SHIFT:
BITAND:
BITCOMPLEMENT:
BITOR:
BITXOR:
DIVIDE:
EQUAL:
IMPLIES:
LESS_THAN:
LESS_THAN_EQUAL:
MINUS:
MODULO:
NOT_EQUAL:
OR:
PLUS:
POINTER_ADD:
POINTER_SUBTRACT:
TIMES:
invalid input: '&'invalid input: '&' (logical and);invalid input: '<' (bitwise left shift);>> (bitwise right shift);invalid input: '&' (bitwise and);~ (bitwise complement);| (bitwise or);^ (bitwise xor);/ (division);== (equal to); (implication);invalid input: '<' (less than);invalid input: '<'= (less than or equal to);- (subtraction);% (modulo);!= (not equal to);|| (logical or);+ (addition);+ (pointer addition);- (pointer subtraction);* (multiplication);-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVALID: a binary operator on a pair of a pointer p and an offsets expression e: (p + e) is/are valid pointers -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BinaryExpression.BINARY_OPERATOR[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
-
BIT_AND
-
BITCOMPLEMENT
-
BIT_OR
-
BIT_XOR
-
DIVIDE
-
EQUAL
-
IMPLIES
-
LESS_THAN
-
LESS_THAN_EQUAL
-
MINUS
-
MODULO
-
NOT_EQUAL
-
OR
-
PLUS
-
POINTER_ADD
-
POINTER_SUBTRACT
-
SHIFTLEFT
-
SHIFTRIGHT
-
TIMES
-
VALID
VALID: a binary operator on a pair of a pointer p and an offsets expression e: (p + e) is/are valid pointers
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-