Enum ArithmeticOperationType
- java.lang.Object
-
- java.lang.Enum<ArithmeticOperationType>
-
- net.ssehub.easy.varModel.cstEvaluation.ArithmeticOperationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ArithmeticOperationType>
enum ArithmeticOperationType extends java.lang.Enum<ArithmeticOperationType>
Basic (number) operations. This enumeration is only needed insideIntegerOperationsandRealOperationsfor differentiation between different number operations, which can be handled by the same methods.- Author:
- El-Sharkawy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIVISIONMINUSMODULOMULTIPLICATIONPLUS
-
Constructor Summary
Constructors Modifier Constructor Description privateArithmeticOperationType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArithmeticOperationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ArithmeticOperationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLUS
public static final ArithmeticOperationType PLUS
-
MINUS
public static final ArithmeticOperationType MINUS
-
MULTIPLICATION
public static final ArithmeticOperationType MULTIPLICATION
-
DIVISION
public static final ArithmeticOperationType DIVISION
-
MODULO
public static final ArithmeticOperationType MODULO
-
-
Method Detail
-
values
public static ArithmeticOperationType[] 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 (ArithmeticOperationType c : ArithmeticOperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArithmeticOperationType 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
-
-