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(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) |
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 IAnnotationFinder
public <A extends IAnnotation> A findAnnotation(ITestNGMethod tm, Class<A> annotationClass)
findAnnotation
in interface IAnnotationFinder
public <A extends IAnnotation> A findAnnotation(ConstructorOrMethod com, Class<A> annotationClass)
findAnnotation
in interface IAnnotationFinder
public <A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A> annotationClass)
findAnnotation
in interface IAnnotationFinder
public <A extends IAnnotation> A findAnnotation(Constructor<?> cons, Class<A> annotationClass)
findAnnotation
in interface IAnnotationFinder
public boolean hasTestInstance(Method method, int i)
hasTestInstance
in interface IAnnotationFinder
public String[] findOptionalValues(Method method)
findOptionalValues
in interface IAnnotationFinder
null
if the parameter isn't optional)public String[] findOptionalValues(Constructor method)
findOptionalValues
in interface IAnnotationFinder
null
if the parameter isn't optional)Copyright © 2018. All rights reserved.