Class ConvertToNumericBase
java.lang.Object
com.aquima.interactions.expressions.functions.convert.ConvertToNumericBase
- All Implemented Interfaces:
IFunction
,Serializable
- Direct Known Subclasses:
ConvertToCurrency
,ConvertToInteger
,ConvertToNumber
,ConvertToPercentage
Base class to convert values to a numeric value
- Since:
- 8.3.7
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineResultType
(ISemanticNode... arguments) This method is used to determine the result type of the function using the type information of the parameters that will be passed to the function.evaluate
(IArgumentList arguments) This method should execute the function using the supplied arguments.This method returns an array containing the definitions of the arguments the function expects.boolean
This method returns a boolean indicating that the function is deprecated and should no longer be used.abstract IPrimitiveValue
toValue
(double doubleValue) abstract IPrimitiveValue
-
Constructor Details
-
Method Details
-
evaluate
Description copied from interface:IFunction
This method should execute the function using the supplied arguments. -
toValue
-
toValue
-
isDeprecated
public boolean isDeprecated()Description copied from interface:IFunction
This method returns a boolean indicating that the function is deprecated and should no longer be used. Functions that are not deprecated should return the value false.- Specified by:
isDeprecated
in interfaceIFunction
- Returns:
- A message indicating that the function is deprecated.
-
getArguments
Description copied from interface:IFunction
This method returns an array containing the definitions of the arguments the function expects. When the function does not accept any arguments at all, an empty array should be returned.- Specified by:
getArguments
in interfaceIFunction
- Returns:
- Array containing the definitions of the parameters.
-
determineResultType
Description copied from interface:IFunction
This method is used to determine the result type of the function using the type information of the parameters that will be passed to the function.- Specified by:
determineResultType
in interfaceIFunction
- Parameters:
arguments
- The type information of the parameters.- Returns:
- The result type of the function.
-