public class AnnotationHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.Class[] |
ALL_ANNOTATIONS |
static java.lang.Class[] |
CONFIGURATION_CLASSES |
Constructor and Description |
---|
AnnotationHelper() |
Modifier and Type | Method and Description |
---|---|
private static IConfigurationAnnotation |
createConfiguration(IConfigurationAnnotation bs,
IConfigurationAnnotation as,
IConfigurationAnnotation bt,
IConfigurationAnnotation at,
IConfigurationAnnotation bg,
IConfigurationAnnotation ag,
IConfigurationAnnotation bc,
IConfigurationAnnotation ac,
IConfigurationAnnotation bm,
IConfigurationAnnotation am) |
private static java.lang.String |
createMethodKey(java.lang.reflect.Method m) |
static java.lang.annotation.Annotation |
findAnnotationSuperClasses(java.lang.Class<?> annotationClass,
java.lang.Class c) |
static IConfigurationAnnotation |
findConfiguration(IAnnotationFinder finder,
java.lang.reflect.Constructor ctor) |
static IConfigurationAnnotation |
findConfiguration(IAnnotationFinder finder,
java.lang.reflect.Method m) |
static IFactoryAnnotation |
findFactory(IAnnotationFinder finder,
java.lang.reflect.Constructor c) |
static IFactoryAnnotation |
findFactory(IAnnotationFinder finder,
java.lang.reflect.Method m) |
static ITestNGMethod[] |
findMethodsWithAnnotation(java.lang.Class<?> rootClass,
java.lang.Class<? extends IAnnotation> annotationClass,
IAnnotationFinder annotationFinder,
XmlTest xmlTest)
Delegation method for creating the list of
ITestMethod s to be
analysed. |
static ITestAnnotation |
findTest(IAnnotationFinder finder,
java.lang.Class<?> cls) |
static ITestAnnotation |
findTest(IAnnotationFinder finder,
java.lang.reflect.Constructor ctor) |
static ITestAnnotation |
findTest(IAnnotationFinder finder,
ITestNGMethod m) |
static ITestAnnotation |
findTest(IAnnotationFinder finder,
java.lang.reflect.Method m) |
private static void |
finishInitialize(ConfigurationAnnotation result,
IConfigurationAnnotation bs) |
static java.lang.Class[] |
getAllAnnotations() |
private static boolean |
isAnnotationPresent(IAnnotationFinder annotationFinder,
java.lang.Class<?> cls,
java.lang.Class<? extends IAnnotation> annotationClass) |
private static boolean |
isAnnotationPresent(IAnnotationFinder annotationFinder,
java.lang.reflect.Method m,
java.lang.Class[] annotationClasses) |
private static boolean |
isAnnotationPresent(IAnnotationFinder annotationFinder,
java.lang.reflect.Method m,
java.lang.Class<? extends IAnnotation> annotationClass) |
private static final java.lang.Class[] ALL_ANNOTATIONS
public static final java.lang.Class[] CONFIGURATION_CLASSES
public static ITestAnnotation findTest(IAnnotationFinder finder, java.lang.Class<?> cls)
public static ITestAnnotation findTest(IAnnotationFinder finder, java.lang.reflect.Method m)
public static ITestAnnotation findTest(IAnnotationFinder finder, ITestNGMethod m)
public static IFactoryAnnotation findFactory(IAnnotationFinder finder, java.lang.reflect.Method m)
public static IFactoryAnnotation findFactory(IAnnotationFinder finder, java.lang.reflect.Constructor c)
public static ITestAnnotation findTest(IAnnotationFinder finder, java.lang.reflect.Constructor ctor)
public static IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, java.lang.reflect.Constructor ctor)
public static IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, java.lang.reflect.Method m)
private static IConfigurationAnnotation createConfiguration(IConfigurationAnnotation bs, IConfigurationAnnotation as, IConfigurationAnnotation bt, IConfigurationAnnotation at, IConfigurationAnnotation bg, IConfigurationAnnotation ag, IConfigurationAnnotation bc, IConfigurationAnnotation ac, IConfigurationAnnotation bm, IConfigurationAnnotation am)
private static void finishInitialize(ConfigurationAnnotation result, IConfigurationAnnotation bs)
public static java.lang.Class[] getAllAnnotations()
public static ITestNGMethod[] findMethodsWithAnnotation(java.lang.Class<?> rootClass, java.lang.Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest)
ITestMethod
s to be
analysed.public static java.lang.annotation.Annotation findAnnotationSuperClasses(java.lang.Class<?> annotationClass, java.lang.Class c)
private static boolean isAnnotationPresent(IAnnotationFinder annotationFinder, java.lang.reflect.Method m, java.lang.Class[] annotationClasses)
private static boolean isAnnotationPresent(IAnnotationFinder annotationFinder, java.lang.reflect.Method m, java.lang.Class<? extends IAnnotation> annotationClass)
private static boolean isAnnotationPresent(IAnnotationFinder annotationFinder, java.lang.Class<?> cls, java.lang.Class<? extends IAnnotation> annotationClass)
private static java.lang.String createMethodKey(java.lang.reflect.Method m)