java.lang.Object
com.aquima.interactions.expressions.functions.convert.ConvertToText
All Implemented Interfaces:
IFunction, Serializable

public class ConvertToText extends Object implements IFunction
This class implements the expression function 'text' which accepts any type combined with an optional pattern and locale, and which will result in a formatted string.
Since:
7.0
Author:
O. Kerpershoek, F. van der Meer
See Also:
  • Constructor Details

    • ConvertToText

      public ConvertToText(DataType datatype)
      Constructs a format function for the specified available data type.
      Parameters:
      datatype - The data type which is the input number type of the format function.
  • Method Details

    • evaluate

      public IValue evaluate(IArgumentList arguments)
      Description copied from interface: IFunction
      This method should execute the function using the supplied arguments.
      Specified by:
      evaluate in interface IFunction
      Parameters:
      arguments - The arguments for the function.
      Returns:
      The result of the function.
    • getArguments

      public IArgumentType[] 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 interface IFunction
      Returns:
      Array containing the definitions of the parameters.
    • getName

      public String getName()
      Description copied from interface: IFunction
      This method returns the name of the function.
      Specified by:
      getName in interface IFunction
      Returns:
      the name of the function.
    • determineResultType

      public Type determineResultType(ISemanticNode... arguments)
      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 interface IFunction
      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 interface IFunction
      Returns:
      A message indicating that the function is deprecated.
    • toString

      public String toString()
      Overrides:
      toString in class Object