Interface Operation
- All Known Implementing Classes:
BinaryOperation,UnaryOperation
Represents a general operation in the Naftah language.
This is a sealed interface that restricts its implementations
to UnaryOperation and BinaryOperation.
- Author:
- Chakib Daii
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic NaftahBugErrornewNaftahBugNoEnumValueError(Class<? extends Operation> operation, String op) Creates aNaftahBugErrorindicating that no enum constant was found for the given operator symbol in the specifiedOperationenum class.
-
Method Details
-
newNaftahBugNoEnumValueError
Creates aNaftahBugErrorindicating that no enum constant was found for the given operator symbol in the specifiedOperationenum class.- Parameters:
operation- the enum class where the operator was expectedop- the operator symbol (e.g., "+", "AND", etc.)- Returns:
- a
NaftahBugErrorwith an Arabic error message
-