Enum Class Operation.FormattingHint
java.lang.Object
java.lang.Enum<Operation.FormattingHint>
net.ssehub.easy.varModel.model.datatypes.Operation.FormattingHint
- All Implemented Interfaces:
Serializable,Comparable<Operation.FormattingHint>,Constable
- Enclosing class:
Operation
Defines some formatting hints for emitting operations
in a canonical form.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEmit it as a function callname(operand, param).Emit it as an infix operatoroperand name param.Emit it as a postfix operatoroperand name.Emit it as a prefix operatorname operand. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Operation.FormattingHintReturns the enum constant of this class with the specified name.static Operation.FormattingHint[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FUNCTION_CALL
Emit it as a function callname(operand, param). -
OPERATOR_INFIX
Emit it as an infix operatoroperand name param. -
OPERATOR_PREFIX
Emit it as a prefix operatorname operand. -
OPERATOR_POSTFIX
Emit it as a postfix operatoroperand name.
-
-
Constructor Details
-
FormattingHint
private FormattingHint()
-
-
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
-