Package org.junit.experimental.theories
Class ParameterSignature
java.lang.Object
org.junit.experimental.theories.ParameterSignature
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ParameterSignature
(Class<?> type, Annotation[] annotations) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAcceptType
(Class<?> candidate) boolean
canAcceptValue
(Object candidate) boolean
canPotentiallyAcceptType
(Class<?> candidate) private <T extends Annotation>
TfindDeepAnnotation
(Annotation[] annotations, Class<T> annotationType, int depth) <T extends Annotation>
TfindDeepAnnotation
(Class<T> annotationType) <T extends Annotation>
TgetAnnotation
(Class<T> annotationType) Class<?>
getType()
boolean
hasAnnotation
(Class<? extends Annotation> type) private boolean
isAssignableViaTypeConversion
(Class<?> targetType, Class<?> candidate) private static <T> void
putSymmetrically
(Map<T, T> map, T a, T b) private static ArrayList<ParameterSignature>
signatures
(Class<?>[] parameterTypes, Annotation[][] parameterAnnotations) static List<ParameterSignature>
signatures
(Constructor<?> constructor) static ArrayList<ParameterSignature>
signatures
(Method method)
-
Field Details
-
CONVERTABLE_TYPES_MAP
-
type
-
annotations
-
-
Constructor Details
-
ParameterSignature
-
-
Method Details
-
buildConvertableTypesMap
-
putSymmetrically
-
signatures
-
signatures
-
signatures
private static ArrayList<ParameterSignature> signatures(Class<?>[] parameterTypes, Annotation[][] parameterAnnotations) -
canAcceptValue
-
canAcceptType
-
canPotentiallyAcceptType
-
isAssignableViaTypeConversion
-
getType
-
getAnnotations
-
hasAnnotation
-
findDeepAnnotation
-
findDeepAnnotation
private <T extends Annotation> T findDeepAnnotation(Annotation[] annotations, Class<T> annotationType, int depth) -
getAnnotation
-