Package org.testng.internal.reflect
Class Parameter
java.lang.Object
org.testng.internal.reflect.Parameter
- All Implemented Interfaces:
AnnotatedElement
This class can be replaceable by java.lang.reflect.Parameter if using jdk 1.8.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Annotation[]preserving the order of annotations.private final Map<Class<? extends Annotation>,Annotation> For efficient back to back searches.private final intprivate final Class<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Map<Class<? extends Annotation>,Annotation> declaredAnnotations(Annotation[] ann) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) Class<?>getType()Returns aClassobject that identifies the declared type for the parameter represented by thisParameterobject.booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Field Details
-
index
private final int index -
type
-
declaredAnnotations
preserving the order of annotations. -
declaredAnnotationsMap
For efficient back to back searches.
-
-
Constructor Details
-
Parameter
-
-
Method Details
-
declaredAnnotations
-
toString
-
getType
Returns aClassobject that identifies the declared type for the parameter represented by thisParameterobject.- Returns:
- a
Classobject identifying the declared type of the parameter represented by this object
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-