public class MethodInvoker extends Executable<Method>
| 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() |
equals, getDelegate, hashCode, toStringpublic MethodInvoker(Method resolverMethod, AnnotatedType enclosingType)
public Object execute(Object target, Object[] args) throws InvocationTargetException, IllegalAccessException
execute in class Executable<Method>InvocationTargetExceptionIllegalAccessExceptionpublic AnnotatedType getReturnType()
getReturnType in class Executable<Method>public int getParameterCount()
getParameters().length.getParameterCount in class Executable<Method>Executable.getParameterCount()public AnnotatedType[] getAnnotatedParameterTypes()
getAnnotatedParameterTypes in class Executable<Method>public Parameter[] getParameters()
getParameters in class Executable<Method>Copyright © 2016–2018. All rights reserved.