Top Fields Constructors Methods
org.hamcrest.internal

public Class ReflectiveTypeFinder

extends Object
Class Inheritance
Imports
java.lang.reflect.Method

Field Summary

Modifier and TypeField and Description
private final int
private final String
private final int

Constructor Summary

AccessConstructor and Description
public
ReflectiveTypeFinder(String methodName, int expectedNumberOfParameters, int typedParameter)

Method Summary

Modifier and TypeMethod and Description
private boolean

Returns:

true if this method references the relevant type
canObtainExpectedTypeFrom
(Method
The method to examine.
method
)

private Class<?>

Returns:

The type we're looking for
expectedTypeFrom
(Method
The method from which to extract
method
)

public Class<?>
findExpectedType(Class<?> fromClass)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expectedNumberOfParametersback to summary
private final int expectedNumberOfParameters
methodNameback to summary
private final String methodName
typedParameterback to summary
private final int typedParameter

Constructor Detail

ReflectiveTypeFinderback to summary
public ReflectiveTypeFinder(String methodName, int expectedNumberOfParameters, int typedParameter)

Method Detail

canObtainExpectedTypeFromback to summary
private boolean canObtainExpectedTypeFrom(Method method)
Parameters
method:Method

The method to examine.

Returns:boolean

true if this method references the relevant type

expectedTypeFromback to summary
private Class<?> expectedTypeFrom(Method method)
Parameters
method:Method

The method from which to extract

Returns:Class<?>

The type we're looking for

findExpectedTypeback to summary
public Class<?> findExpectedType(Class<?> fromClass)