public class JDK15TagFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
JDK15TagFactory.Default<T>
This interface is used to calculate the default value for various annotation return types.
|
Modifier and Type | Field and Description |
---|---|
private static JDK15TagFactory.Default<java.lang.Class<?>> |
DEFAULT_CLASS |
private static JDK15TagFactory.Default<java.lang.String> |
DEFAULT_STRING |
Constructor and Description |
---|
JDK15TagFactory() |
Modifier and Type | Method and Description |
---|---|
private IAnnotation |
createConfigurationTag(boolean beforeSuite,
boolean afterSuite,
boolean beforeTest,
boolean afterTest,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
boolean beforeClass,
boolean afterClass,
boolean beforeMethod,
boolean afterMethod,
boolean alwaysRun,
java.lang.String[] dependsOnGroups,
java.lang.String[] dependsOnMethods,
java.lang.String description,
boolean enabled,
java.lang.String[] groups,
boolean inheritGroups,
boolean firstTimeOnly,
boolean lastTimeOnly,
long timeOut,
java.lang.String[] groupFilters) |
private IAnnotation |
createDataProviderTag(java.lang.reflect.Method method,
java.lang.annotation.Annotation a) |
private IAnnotation |
createFactoryTag(java.lang.Class<?> cls,
java.lang.annotation.Annotation a) |
private IAnnotation |
createListenersTag(java.lang.annotation.Annotation a) |
private IAnnotation |
createObjectFactoryTag() |
private IAnnotation |
createParametersTag(java.lang.annotation.Annotation a) |
<A extends IAnnotation> |
createTag(java.lang.Class<?> cls,
java.lang.reflect.Method method,
java.lang.annotation.Annotation a,
java.lang.Class<A> annotationClass) |
private IAnnotation |
createTestTag(java.lang.Class<?> cls,
java.lang.annotation.Annotation a) |
private <T> T |
findInherited(T methodValue,
java.lang.Class<?> cls,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass,
java.lang.String methodName,
JDK15TagFactory.Default<T> def)
Find the value of an annotation, starting with the annotation found on the method, then the
class and then parent classes until we either find a non-default value or we reach the top of
the hierarchy (Object).
|
private java.lang.String[] |
findInheritedStringArray(java.lang.Class<?> cls,
java.lang.String methodName)
Find the value of a String[] annotation.
|
private java.lang.Object |
invokeMethod(java.lang.annotation.Annotation test,
java.lang.String methodName) |
private java.lang.String[] |
join(java.lang.String[] strings,
java.lang.String[] strings2) |
private IAnnotation |
maybeCreateNewConfigurationTag(java.lang.annotation.Annotation a,
java.lang.Class<?> annotationClass) |
private static final JDK15TagFactory.Default<java.lang.Class<?>> DEFAULT_CLASS
private static final JDK15TagFactory.Default<java.lang.String> DEFAULT_STRING
public <A extends IAnnotation> A createTag(java.lang.Class<?> cls, java.lang.reflect.Method method, java.lang.annotation.Annotation a, java.lang.Class<A> annotationClass)
private IAnnotation maybeCreateNewConfigurationTag(java.lang.annotation.Annotation a, java.lang.Class<?> annotationClass)
private IAnnotation createConfigurationTag(boolean beforeSuite, boolean afterSuite, boolean beforeTest, boolean afterTest, java.lang.String[] beforeGroups, java.lang.String[] afterGroups, boolean beforeClass, boolean afterClass, boolean beforeMethod, boolean afterMethod, boolean alwaysRun, java.lang.String[] dependsOnGroups, java.lang.String[] dependsOnMethods, java.lang.String description, boolean enabled, java.lang.String[] groups, boolean inheritGroups, boolean firstTimeOnly, boolean lastTimeOnly, long timeOut, java.lang.String[] groupFilters)
private IAnnotation createDataProviderTag(java.lang.reflect.Method method, java.lang.annotation.Annotation a)
private IAnnotation createFactoryTag(java.lang.Class<?> cls, java.lang.annotation.Annotation a)
private IAnnotation createObjectFactoryTag()
private IAnnotation createParametersTag(java.lang.annotation.Annotation a)
private IAnnotation createListenersTag(java.lang.annotation.Annotation a)
private IAnnotation createTestTag(java.lang.Class<?> cls, java.lang.annotation.Annotation a)
private java.lang.String[] join(java.lang.String[] strings, java.lang.String[] strings2)
private <T> T findInherited(T methodValue, java.lang.Class<?> cls, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass, java.lang.String methodName, JDK15TagFactory.Default<T> def)
private java.lang.String[] findInheritedStringArray(java.lang.Class<?> cls, java.lang.String methodName)
private java.lang.Object invokeMethod(java.lang.annotation.Annotation test, java.lang.String methodName)