@ApiStatus.Internal
public class ProxyRuntime
extends java.lang.Object
| Constructor and Description |
|---|
ProxyRuntime() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.invoke.MethodHandle[] |
getMethodHandles(java.lang.Class<?> owner,
java.lang.Class<?> superOwner,
java.lang.String name,
java.lang.Class<?>[] parameters,
java.lang.Class<?> returnType)
Invoked in the static initializer of the proxy method class.
|
static ProxyMethod |
instantiateProxyMethod(java.lang.Class<ProxyMethod> clazz,
java.lang.Object instance,
java.lang.reflect.Method method)
Invoked in the proxy methods.
|
public static java.lang.invoke.MethodHandle[] getMethodHandles(java.lang.Class<?> owner,
java.lang.Class<?> superOwner,
java.lang.String name,
java.lang.Class<?>[] parameters,
java.lang.Class<?> returnType)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException
owner - The owner of the methodname - The name of the methodparameters - The parameter types of the methodreturnType - The return type of the methodjava.lang.NoSuchMethodException - If the method does not existjava.lang.IllegalAccessException - If the method is not accessiblepublic static ProxyMethod instantiateProxyMethod(java.lang.Class<ProxyMethod> clazz, java.lang.Object instance, java.lang.reflect.Method method) throws java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.IllegalAccessException
clazz - The class of the proxy method to instantiateinstance - The instance of the proxymethod - The method to proxyjava.lang.NoSuchMethodException - If the constructor does not existjava.lang.reflect.InvocationTargetException - If the constructor throws an exceptionjava.lang.InstantiationException - If the class is abstractjava.lang.IllegalAccessException - If the constructor is not accessible