ReflectiveTypeFinder (Hamcrest)
Date: 2012-07-09

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hamcrest.internal
Class ReflectiveTypeFinder

    java.lang.Object
      org.hamcrest.internal.ReflectiveTypeFinder

    public class ReflectiveTypeFinder

extends java.lang.Object

Constructor Summary
`ReflectiveTypeFinder(java.lang.String methodName, int expectedNumberOfParameters, int typedParameter)`

Method Summary
`protected boolean` | `canObtainExpectedTypeFrom(java.lang.reflect.Method method)`
`protected java.lang.Class<?>` | `expectedTypeFrom(java.lang.reflect.Method method)`
`java.lang.Class<?>` | `findExpectedType(java.lang.Class<?> fromClass)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReflectiveTypeFinder

    public ReflectiveTypeFinder(java.lang.String methodName,
                                int expectedNumberOfParameters,
                                int typedParameter)

Method Detail

### findExpectedType

    public java.lang.Class<?> findExpectedType(java.lang.Class<?> fromClass)

### canObtainExpectedTypeFrom

    protected boolean canObtainExpectedTypeFrom(java.lang.reflect.Method method)

  Parameters:
    `method` - The method to examine.
  Returns:
    true if this method references the relevant type

### expectedTypeFrom

    protected java.lang.Class<?> expectedTypeFrom(java.lang.reflect.Method method)

  Parameters:
    `method` - The method from which to extract
  Returns:
    The type we're looking for

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD