public class ReflectionMethodInvoker
extends java.lang.Object
Invoker to call the method if it fails.
The class is particularly useful for Groovy classes implementing GroovyInterceptable,
since it is not possible to call any method from this class,
because it is intercepted by the invokeMethod() method.| Constructor and Description |
|---|
ReflectionMethodInvoker() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
invoke(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] parameters)
Invoke a method through reflection.
|
public static java.lang.Object invoke(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] parameters)
object - the object on which to invoke a methodmethodName - the name of the method to invokeparameters - the parameters of the method call