Class FunctionInvokingEvent<T>

  • Type Parameters:
    T - The type of the KernelFunction being invoked
    All Implemented Interfaces:
    KernelHookEvent

    public class FunctionInvokingEvent<T>
    extends Object
    implements KernelHookEvent
    Represents a KernelHookEvent that is raised before a function is invoked. This event is raised before the function is invoked, and can be used to by a KernelHook to modify the arguments before the function is invoked.
    • Constructor Detail

      • FunctionInvokingEvent

        public FunctionInvokingEvent​(KernelFunction<T> function,
                                     @Nullable
                                     KernelFunctionArguments arguments)
        Creates a new instance of the FunctionInvokingEvent class.
        Parameters:
        function - The function that is being invoked
        arguments - The arguments that are being passed to the function
    • Method Detail

      • getFunction

        public KernelFunction<T> getFunction()
        Gets the function that is being invoked.
        Returns:
        the function
      • getArguments

        public KernelFunctionArguments getArguments()
        Gets the arguments that are being passed to the function.
        Returns:
        the arguments