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 int
private 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 aClass
object that identifies the declared type for the parameter represented by thisParameter
object.boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 aClass
object that identifies the declared type for the parameter represented by thisParameter
object.- Returns:
- a
Class
object identifying the declared type of the parameter represented by this object
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
-