public class StaticMethodInvoker extends Object implements MethodInvocationHandler
NULL| Constructor and Description |
|---|
StaticMethodInvoker(String name,
MethodHandle method) |
StaticMethodInvoker(String name,
MethodHandle method,
Class<?> targetReturnType,
Class<?>[] targetParameterTypes)
Invokes a given method.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
Class<?>[] |
getTargetParameterTypes() |
Class<?> |
getTargetReturnType() |
Object |
invoke(Object object,
Object... args) |
public StaticMethodInvoker(String name, MethodHandle method)
public StaticMethodInvoker(String name, MethodHandle method, Class<?> targetReturnType, Class<?>[] targetParameterTypes)
StaticMethodInvoker(String,MethodHandle) this constructor also converts the method signaturename - the name of the methodmethod - the method to invoketargetReturnType - the return type the result of the actual invocation should be converted totargetParameterTypes - the types the parameters should be converted fromConvertCopyright © 2017. All rights reserved.