类 ReflectiveTypeFinder
- java.lang.Object
- org.hamcrest.internal.ReflectiveTypeFinder
public class ReflectiveTypeFinder extends Object
构造器概要
构造器 构造器 说明 ReflectiveTypeFinder(String methodName, int expectedNumberOfParameters, int typedParameter)
构造器详细资料
ReflectiveTypeFinder
public ReflectiveTypeFinder(String methodName, int expectedNumberOfParameters, int typedParameter)
方法详细资料
findExpectedType
public Class<?> findExpectedType(Class<?> fromClass)
canObtainExpectedTypeFrom
protected boolean canObtainExpectedTypeFrom(Method method)
- 参数:
method
- The method to examine.- 返回:
- true if this method references the relevant type
expectedTypeFrom
protected Class<?> expectedTypeFrom(Method method)
- 参数:
method
- The method from which to extract- 返回:
- The type we're looking for