Skip to content

ProxyBuilder.ProxyReference ​

com.jsmacrosce.jsmacros.core.library.impl.classes.ProxyBuilder.ProxyReference

Holds the proxy instance and a callable for the overridden method, and is passed to handlers registered with addMethod.

Type Parameters ​

  • T: the proxy instance type

Nested type declared in ProxyBuilder.

Constructors ​

new ProxyBuilder.ProxyReference ​

new ProxyBuilder.ProxyReference(T self, Function<Object[], Object> parent)#
Creates the handler reference for a proxy instance and its overridden method.

Parameters:

  • self: the instance the method was called on
  • parent: calls the method the proxy took over, or null when the superclass has no such method

Fields ​

parent ​

parent: Function<Object[], Object>read-only#
Calls the overridden method with the supplied arguments and returns its result, or is null when there is no superclass method to invoke.

self ​

self: Tread-only#
The proxy instance on which the intercepted method was called.