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