public class JDK15AnnotationFinder extends Object implements IAnnotationFinder
| Constructor and Description |
|---|
JDK15AnnotationFinder(IAnnotationTransformer transformer) |
| 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 tm,
Class<A> annotationClass) |
<A extends IAnnotation> |
findAnnotation(Method m,
Class<A> annotationClass) |
<A extends IAnnotation> |
findInheritedAnnotations(Class<?> cls,
Class<A> annotationClass) |
String[] |
findOptionalValues(Constructor<?> method) |
String[] |
findOptionalValues(Method method) |
boolean |
hasTestInstance(Method method,
int i) |
public JDK15AnnotationFinder(IAnnotationTransformer transformer)
public <A extends IAnnotation> A findAnnotation(Method m, Class<A> annotationClass)
findAnnotation in interface IAnnotationFinderA - The expected IAnnotation typem - - The corresponding MethodannotationClass - - The class on which annotation is to be looked for.public <A extends IAnnotation> A findAnnotation(Class<?> clazz, Method m, Class<A> annotationClass)
findAnnotation in interface IAnnotationFinderpublic <A extends IAnnotation> A findAnnotation(ITestNGMethod tm, Class<A> annotationClass)
findAnnotation in interface IAnnotationFinderpublic <A extends IAnnotation> A findAnnotation(ConstructorOrMethod com, Class<A> annotationClass)
findAnnotation in interface IAnnotationFinderpublic <A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A> annotationClass)
findAnnotation in interface IAnnotationFinderA - The expected IAnnotation typecls - - The corresponding class.annotationClass - - The class on which annotation is to be looked for.public <A extends IAnnotation> A findAnnotation(Constructor<?> cons, Class<A> annotationClass)
findAnnotation in interface IAnnotationFinderA - The expected IAnnotation typecons - - The corresponding ConstructorannotationClass - - The class on which annotation is to be looked for.public <A extends IAnnotation> List<A> findInheritedAnnotations(Class<?> cls, Class<A> annotationClass)
findInheritedAnnotations in interface IAnnotationFinderA - - The expected IAnnotation typecls - - The corresponding class.annotationClass - - The class on which annotation is to be looked for.public boolean hasTestInstance(Method method, int i)
hasTestInstance in interface IAnnotationFindermethod - The Methodi - The parameter indexpublic String[] findOptionalValues(Method method)
findOptionalValues in interface IAnnotationFindermethod - The Methodnull if the parameter
isn't optional)public String[] findOptionalValues(Constructor<?> method)
findOptionalValues in interface IAnnotationFindermethod - The Constructornull if the parameter
isn't optional)Copyright © 2025. All rights reserved.