public final class Annotations extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
call(Object object,
Class<? extends Annotation> annotation,
int required,
Class<?>[] argTypes,
Object... args)
Calls a method with a specific annotation and parameters.
|
public static Object call(Object object, Class<? extends Annotation> annotation, int required, Class<?>[] argTypes, Object... args) throws InvocationTargetException, IllegalAccessException
object - The objectannotation - The annotation classrequired - The number of required parameters (at least)argTypes - The parameter typesargs - The parameter objectsInvocationTargetException - The invocation target exceptionIllegalAccessException - The illegal access exceptionCopyright © 2014–2015 MountainBlade. All rights reserved.