@HashCodeAndEqualsPlugin.Enhance public static class JavaDispatcher.Invoker.Unsafe extends Object implements JavaDispatcher.Invoker
JavaDispatcher.Invoker.CreationAction, JavaDispatcher.Invoker.Unsafe| Modifier and Type | Method and Description | 
|---|---|
Object | 
invoke(Method method,
      Object instance,
      Object[] argument)
Invokes a method via  
Method.invoke(Object, Object...). | 
Object | 
newInstance(Constructor<?> constructor,
           Object[] argument)
Creates a new instance via  
Constructor.newInstance(Object...). | 
public Object newInstance(Constructor<?> constructor, Object[] argument) throws InstantiationException, IllegalAccessException, InvocationTargetException
Constructor.newInstance(Object...).newInstance in interface JavaDispatcher.Invokerconstructor - The constructor to invoke.argument - The constructor arguments.InstantiationException - If the instance cannot be constructed.IllegalAccessException - If the constructor is accessed illegally.InvocationTargetException - If the invocation causes an error.public Object invoke(Method method, Object instance, Object[] argument) throws IllegalAccessException, InvocationTargetException
Method.invoke(Object, Object...).invoke in interface JavaDispatcher.Invokermethod - The method to invoke.instance - The instance upon which to invoke the method or null if the method is static.argument - The method arguments.null if the method is void.IllegalAccessException - If the method is accessed illegally.InvocationTargetException - If the invocation causes an error.Copyright © 2014–2021. All rights reserved.