Proxies
Last updated
Was this helpful?
Last updated
Was this helpful?
The first argument (%javatypes%
) is a list of imported interfaces (whether a class is an interface can be found on the javadoc).
The second argument is an indexed list variable, with each element in the form {list::%method name%} = %function/section%
. %method name%
is the name of one of the methods from one of the interfaces. %function/section%
is either a function reference or a .
Function wrappers can be created with the following syntax.
The first argument (%strings%
) is the name of the function you want to reference. This is enough for the function reference to be completed, but you can also add some argument values.
When a method from the proxy is ran, it is passed on to the function/section corresponding to the method name. The arguments are defined in the following way: 1. The argument values specified in the function reference (if there are any) (only if this method doesn't redirect to a section) 2. The proxy instance object itself. 3. The argument values from the method call.
Here's an example to help you understand it: