Class IsUnknownFunction
java.lang.Object
com.aquima.interactions.expressions.functions.unknown.IsUnknownFunction
- All Implemented Interfaces:
IFunction
,Serializable
Function that returns the value of the first or second parameter depending on whether the first parameter is unknown.
If the first parameter is not unknown the first value is returned, else the value of the second parameter is
returned.
result := (first != unknown) ? first : second
- Since:
- 6.4
- Author:
- F. van der Meer, O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIsUnknownFunction
(DataType datatype, boolean multivalue) Constructs the function with the required arguments. -
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.getName()
This method returns the name of the function.boolean
This method returns a boolean indicating that the function is deprecated and should no longer be used.toString()
-
Constructor Details
-
IsUnknownFunction
Constructs the function with the required arguments.- Parameters:
datatype
- The type of the parameters.multivalue
- Boolean indicating if the parameters should be list values.
-
-
Method Details
-
evaluate
Description copied from interface:IFunction
This method should execute the function using the supplied arguments. -
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.
-
getName
Description copied from interface:IFunction
This method returns the name of the function. -
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.
-
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.
-
toString
-