org.testng.internal.annotations
Class JDK14AnnotationFinder
java.lang.Object
org.testng.internal.annotations.JDK14AnnotationFinder
- All Implemented Interfaces:
- IAnnotationFinder
public class JDK14AnnotationFinder
- extends java.lang.Object
- implements IAnnotationFinder
This class implements IAnnotationFinder with QDox for JDK 1.4
- Author:
- Cedric Beust, Alexandru Popescu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDK14AnnotationFinder
public JDK14AnnotationFinder(IAnnotationTransformer transformer)
addSourceDirs
public void addSourceDirs(java.lang.String[] dirPaths)
- Specified by:
addSourceDirs
in interface IAnnotationFinder
findAnnotation
public IAnnotation findAnnotation(java.lang.Class cls,
java.lang.Class annotationClass)
- Specified by:
findAnnotation
in interface IAnnotationFinder
- Returns:
- The annotation on the class or null if none found.
findAnnotation
public IAnnotation findAnnotation(java.lang.reflect.Method m,
java.lang.Class annotationClass)
- Specified by:
findAnnotation
in interface IAnnotationFinder
- Returns:
- The annotation on the method.
If not found, return the annotation on the declaring class.
If not found, return null.
findAnnotation
public IAnnotation findAnnotation(java.lang.reflect.Constructor m,
java.lang.Class annotationClass)
- Specified by:
findAnnotation
in interface IAnnotationFinder
- Returns:
- The annotation on the method.
If not found, return the annotation on the declaring class.
If not found, return null.
hasTestInstance
public boolean hasTestInstance(java.lang.reflect.Method method,
int i)
- Specified by:
hasTestInstance
in interface IAnnotationFinder
- Returns:
- true if the ith parameter of the given method has the annotation @TestInstance.
findOptionalValues
public java.lang.String[] findOptionalValues(java.lang.reflect.Method method)
- Specified by:
findOptionalValues
in interface IAnnotationFinder
- Returns:
- the @Optional values of this method's parameters (
null
if the parameter isn't optional)
findOptionalValues
public java.lang.String[] findOptionalValues(java.lang.reflect.Constructor method)
- Specified by:
findOptionalValues
in interface IAnnotationFinder
- Returns:
- the @Optional values of this method's parameters (
null
if the parameter isn't optional)
Copyright © 2010. All Rights Reserved.