Package org.hamcrest.internal
Class ReflectiveTypeFinder
java.lang.Object
org.hamcrest.internal.ReflectiveTypeFinder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReflectiveTypeFinder
(String methodName, int expectedNumberOfParameters, int typedParameter) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canObtainExpectedTypeFrom
(Method method) private Class<?>
expectedTypeFrom
(Method method) Class<?>
findExpectedType
(Class<?> fromClass)
-
Field Details
-
methodName
-
expectedNumberOfParameters
private final int expectedNumberOfParameters -
typedParameter
private final int typedParameter
-
-
Constructor Details
-
ReflectiveTypeFinder
-
-
Method Details
-
findExpectedType
-
canObtainExpectedTypeFrom
- Parameters:
method
- The method to examine.- Returns:
- true if this method references the relevant type
-
expectedTypeFrom
- Parameters:
method
- The method from which to extract- Returns:
- The type we're looking for
-