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) |
<A extends IAnnotation> |
findInheritedAnnotations(Class<?> cls,
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)
A - The expected IAnnotation typecls - - The corresponding class.annotationClass - - The class on which annotation is to be looked for.<A extends IAnnotation> A findAnnotation(Method m, Class<A> annotationClass)
A - The expected IAnnotation typem - - The corresponding MethodannotationClass - - 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)
A - The expected IAnnotation typecons - - The corresponding ConstructorannotationClass - - The class on which annotation is to be looked for.<A extends IAnnotation> List<A> findInheritedAnnotations(Class<?> cls, Class<A> annotationClass)
A - - The expected IAnnotation typecls - - The corresponding class.annotationClass - - The class on which annotation is to be looked for.boolean hasTestInstance(Method method, int i)
method - The Methodi - The parameter indexString[] findOptionalValues(Method method)
method - The Methodnull if the parameter
isn't optional)String[] findOptionalValues(Constructor<?> ctor)
ctor - The Constructornull if the parameter
isn't optional)Copyright © 2025. All rights reserved.