Interface Function

    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the function.
        Returns:
        The name of this function class.
      • execute

        FunctionResult execute​(Evaluator evaluator,
                               java.lang.String arguments)
                        throws FunctionException
        Executes the function for the specified argument. This method is called internally by Evaluator.
        Parameters:
        evaluator - An instance of Evaluator.
        arguments - The arguments that will be evaluated by the function. It is up to the function implementation to break the string into one or more arguments.
        Returns:
        The value of the evaluated argument and its type.
        Throws:
        FunctionException - thrown if the argument(s) are not valid for this function