Interface FunctionDictionaryIfc

    • Method Detail

      • addFunction

        void addFunction​(java.lang.String functionName,
                         FunctionIfc function)
        Allows to add a function to the dictionary. Implementation is optional, if you have a fixed set of functions, this method can throw an exception.
        Parameters:
        functionName - The function name.
        function - The function implementation.
      • hasFunction

        default boolean hasFunction​(java.lang.String functionName)
        Check if the dictionary has a function with that name.
        Parameters:
        functionName - The function name to look for.
        Returns:
        true if a function was found or false if not.
      • getFunction

        FunctionIfc getFunction​(java.lang.String functionName)
        Get the function definition for a function name.
        Parameters:
        functionName - The name of the function.
        Returns:
        The function definition or null if no function was found.