ExecutableInvoker
allows invoking methods and constructors
with support for dynamic resolution of parameters via
ParameterResolvers
.
Modifier and Type | Method and Description |
---|---|
public default Object | |
public Object | |
public default <T> T | invoke(Constructor<T>
the constructor to invoke and resolve parameters for constructor)Invoke the supplied top-level constructor with dynamic parameter resolution. |
public <T> T | invoke(Constructor<T>
the constructor to invoke and resolve parameters for constructor, Object the outer instance to supply as the first argument
to the constructor; must be outerInstance)null for top-level classes
or static nested classesInvoke the supplied constructor with the supplied outer instance and dynamic parameter resolution. |
invoke | back to summary |
---|---|
public default Object invoke(Method method) Invoke the supplied
|
invoke | back to summary |
---|---|
public Object invoke(Method method, Object target) Invoke the supplied method with dynamic parameter resolution. |
invoke | back to summary |
---|---|
public default <T> T invoke(Constructor<T> constructor) Invoke the supplied top-level constructor with dynamic parameter resolution.
|
invoke | back to summary |
---|---|
public <T> T invoke(Constructor<T> constructor, Object outerInstance) Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution. Use this method when invoking the constructor for an inner class.
|