org.hamcrest.internal
Class ReflectiveTypeFinder
java.lang.Object
org.hamcrest.internal.ReflectiveTypeFinder
public class ReflectiveTypeFinder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectiveTypeFinder
public ReflectiveTypeFinder(String methodName,
int expectedNumberOfParameters,
int typedParameter)
findExpectedType
public Class<?> findExpectedType(Class<?> fromClass)
canObtainExpectedTypeFrom
protected boolean canObtainExpectedTypeFrom(Method method)
- Parameters:
method
- The method to examine.
- Returns:
- true if this method references the relevant type
expectedTypeFrom
protected Class<?> expectedTypeFrom(Method method)
- Parameters:
method
- The method from which to extract
- Returns:
- The type we're looking for