public class MethodInvoker extends Executable
| Constructor and Description |
|---|
MethodInvoker(Method resolverMethod,
AnnotatedType enclosingType) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Object target,
Object[] args) |
AnnotatedType[] |
getAnnotatedParameterTypes() |
int |
getParameterCount()
Returns the number of formal parameters this executable takes.
|
Parameter[] |
getParameters() |
AnnotatedType |
getReturnType() |
String |
toString() |
equals, hashCodepublic MethodInvoker(Method resolverMethod, AnnotatedType enclosingType)
public Object execute(Object target, Object[] args) throws InvocationTargetException, IllegalAccessException
execute in class ExecutableInvocationTargetExceptionIllegalAccessExceptionpublic AnnotatedType getReturnType()
getReturnType in class Executablepublic int getParameterCount()
getParameters().length.getParameterCount in class ExecutableExecutable.getParameterCount()public AnnotatedType[] getAnnotatedParameterTypes()
getAnnotatedParameterTypes in class Executablepublic Parameter[] getParameters()
getParameters in class ExecutableCopyright © 2016–2017. All rights reserved.