public interface IAnnotationFinder
Modifier and Type | Method and Description |
---|---|
<A extends IAnnotation> |
findAnnotation(Class<?> cls,
Class<A> annotationClass) |
<A extends IAnnotation> |
findAnnotation(Class<?> clazz,
Method m,
Class<A> annotationClass) |
<A extends IAnnotation> |
findAnnotation(Constructor<?> cons,
Class<A> annotationClass) |
<A extends IAnnotation> |
findAnnotation(ConstructorOrMethod com,
Class<A> annotationClass) |
<A extends IAnnotation> |
findAnnotation(ITestNGMethod m,
Class<A> annotationClass) |
<A extends IAnnotation> |
findAnnotation(Method m,
Class<A> annotationClass) |
String[] |
findOptionalValues(Constructor ctor) |
String[] |
findOptionalValues(Method method) |
boolean |
hasTestInstance(Method method,
int i) |
<A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A> annotationClass)
cls
- - The corresponding class.annotationClass
- - The class on which annotation is to be looked for.<A extends IAnnotation> A findAnnotation(Method m, Class<A> annotationClass)
m
- - The corresponding Method
annotationClass
- - The class on which annotation is to be looked for.<A extends IAnnotation> A findAnnotation(ITestNGMethod m, Class<A> annotationClass)
<A extends IAnnotation> A findAnnotation(ConstructorOrMethod com, Class<A> annotationClass)
<A extends IAnnotation> A findAnnotation(Class<?> clazz, Method m, Class<A> annotationClass)
<A extends IAnnotation> A findAnnotation(Constructor<?> cons, Class<A> annotationClass)
cons
- - The corresponding Constructor
annotationClass
- - The class on which annotation is to be looked for.boolean hasTestInstance(Method method, int i)
String[] findOptionalValues(Method method)
null
if the parameter
isn't optional)String[] findOptionalValues(Constructor ctor)
null
if the parameter
isn't optional)