Class ArithmeticOperations
java.lang.Object
com.aquima.interactions.expressions.semantics.ArithmeticOperations
This internal class is responsible for knowing the valid operations and resulting types of arithmetic operations.
- Since:
- 6.3
- Author:
- F. van der Meer
-
Method Summary
Modifier and TypeMethodDescriptiondetermineType
(DataType leftType, Operator operator, DataType rightType) This method can be used to determine the result type of an operation.
-
Method Details
-
determineType
public static ArithmeticOperationResultType determineType(DataType leftType, Operator operator, DataType rightType) This method can be used to determine the result type of an operation.- Parameters:
leftType
- The type of the left hand side argument to the operation.operator
- The type of operation for which the result type is requested.rightType
- The type of the right hand side argument to the operation.- Returns:
- The result type of the operation.
-