Interface Dispatcher

    • Method Detail

      • dispatch

        java.lang.Object dispatch​(Metadata metadata,
                                  long exprId,
                                  java.lang.String functionName,
                                  java.util.List<java.lang.String> overloadIds,
                                  java.lang.Object[] args)
                           throws InterpreterException
        Invokes a function based on given parameters.
        Parameters:
        metadata - Metadata used for error reporting.
        exprId - Expression identifier which can be used together with metadata to get information about the dispatch target for error reporting.
        functionName - the logical name of the function being invoked.
        overloadIds - A list of function overload ids. The dispatcher selects the unique overload from this list with matching arguments.
        args - The arguments to pass to the function.
        Returns:
        The result of the function call.
        Throws:
        InterpreterException - if something goes wrong.