public class AnnotationHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.List<java.lang.Class<? extends IAnnotation>> |
ALL_ANNOTATIONS |
private static java.util.List<java.lang.Class<? extends IAnnotation>> |
CONFIGURATION_CLASSES |
private static Logger |
LOGGER |
private static java.lang.String |
SUFFIX |
Modifier | Constructor and Description |
---|---|
private |
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 <A extends java.lang.annotation.Annotation> |
findAnnotationSuperClasses(java.lang.Class<A> annotationClass,
java.lang.Class<?> parameterClass) |
static IConfigurationAnnotation |
findConfiguration(IAnnotationFinder finder,
ConstructorOrMethod m) |
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,
ITestNGMethod m) |
static ITestAnnotation |
findTest(IAnnotationFinder finder,
java.lang.reflect.Method m) |
private static void |
finishInitialize(ConfigurationAnnotation result,
IConfigurationAnnotation bs) |
static java.util.List<java.lang.Class<? extends IAnnotation>> |
getAllAnnotations() |
(package private) static <A extends java.lang.annotation.Annotation> |
getAnnotationFromClass(java.lang.Class<?> clazz,
java.lang.Class<A> a) |
(package private) static <A extends java.lang.annotation.Annotation> |
getAnnotationFromConstructor(java.lang.reflect.Constructor<?> c,
java.lang.Class<A> a) |
(package private) static <A extends java.lang.annotation.Annotation> |
getAnnotationFromMethod(java.lang.reflect.Method method,
java.lang.Class<A> a) |
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) |
private static boolean |
isAnnotationPresent(IAnnotationFinder annotationFinder,
java.lang.reflect.Method m,
java.lang.Class<? extends IAnnotation> annotationClass) |
private static final Logger LOGGER
private static final java.lang.String SUFFIX
private static final java.util.List<java.lang.Class<? extends IAnnotation>> ALL_ANNOTATIONS
private static final java.util.List<java.lang.Class<? extends IAnnotation>> 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 IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, ConstructorOrMethod m)
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.util.List<java.lang.Class<? extends IAnnotation>> 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 <A extends java.lang.annotation.Annotation> A findAnnotationSuperClasses(java.lang.Class<A> annotationClass, java.lang.Class<?> parameterClass)
private static boolean isAnnotationPresent(IAnnotationFinder annotationFinder, java.lang.reflect.Method m)
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)
static <A extends java.lang.annotation.Annotation> A getAnnotationFromClass(java.lang.Class<?> clazz, java.lang.Class<A> a)
static <A extends java.lang.annotation.Annotation> A getAnnotationFromMethod(java.lang.reflect.Method method, java.lang.Class<A> a)
static <A extends java.lang.annotation.Annotation> A getAnnotationFromConstructor(java.lang.reflect.Constructor<?> c, java.lang.Class<A> a)