public interface MethodAccess
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Get an annotation of the method.
|
int |
getModifiers() |
java.lang.String |
getName() |
int |
getParameterCount() |
java.lang.Class<?>[] |
getParameterTypes() |
java.lang.Class<?> |
getReturnType() |
java.lang.Object |
invoke(java.lang.Object instance,
java.lang.Object... args)
Invoke the method with the given instance and arguments.
|
java.lang.String getName()
Method.getName()int getModifiers()
Method.getModifiers()int getParameterCount()
Method.getParameterCount()java.lang.Class<?> getReturnType()
Method.getReturnType()java.lang.Class<?>[] getParameterTypes()
Method.getParameterTypes()<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
T - The type of the annotationannotationClass - The class of the annotationAccessibleObject.getDeclaredAnnotation(Class)java.lang.Object invoke(java.lang.Object instance,
java.lang.Object... args)
instance - The instance to invoke the method onargs - The arguments to pass to the methodMethod.invoke(Object, Object...)