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

public class Concat extends Object implements IFunction
Implementation of the CONCAT function.

Note: The CONCAT function is also used as a JOIN function, as both functions are identical except for the name.

Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Concat(String functionName)
    Constructs the CONCAT function with as argument the name the function should expose as.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    This method should execute the function using the supplied arguments.
    This method returns an array containing the definitions of the arguments the function expects.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Concat

      public Concat(String functionName)
      Constructs the CONCAT function with as argument the name the function should expose as. The name of the function will be either CONCAT or JOIN.
      Parameters:
      functionName - The name the function should expose as.
  • Method Details

    • 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.
    • 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.
    • 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.