public class ConstructorInvoker extends Object implements MethodInvocationHandler
NULL| Constructor and Description |
|---|
ConstructorInvoker(MethodHandle constructor)
Invokes the given constructor
|
ConstructorInvoker(MethodHandle constructor,
Class<?> targetReturnType,
Class<?>[] targetParameterTypes)
Invokes the given constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getResultType() |
Class<?>[] |
getTargetParameterTypes() |
Class<?> |
getTargetReturnType() |
Object |
invoke(Object object,
Object... args) |
public ConstructorInvoker(MethodHandle constructor)
constructor - the constructor to invokepublic ConstructorInvoker(MethodHandle constructor, Class<?> targetReturnType, Class<?>[] targetParameterTypes)
ConstructorInvoker(MethodHandle) this constructor also converts the constructor signatureconstructor - the constructor 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.