Class ArithmeticOperationResultType
java.lang.Object
com.aquima.interactions.expressions.semantics.ArithmeticOperationResultType
This internal class contains information of an arithmetic operation and it's result type.
- Since:
- 6.3
- Author:
- F. van der Meer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ArithmeticOperationResultType
(DataType resultType, ErrorCode code, boolean error) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
This method returns an optional error code which states when available if this is a warning or error.getType()
This method returns the actual resulting type.boolean
isError()
This method returns a boolean indicating the result type is an error and should actually not be used.
-
Constructor Details
-
ArithmeticOperationResultType
-
-
Method Details
-
isError
public boolean isError()This method returns a boolean indicating the result type is an error and should actually not be used.- Returns:
- a boolean indicating the result type is an error and should actually not be used.
-
getCode
This method returns an optional error code which states when available if this is a warning or error. Check the isError function to indicate the difference between a warning and an error.- Returns:
- ErrorCode a code containing the error message.
-
getType
This method returns the actual resulting type.- Returns:
- The actual resulting type.
-