Class GenericMaster
java.lang.Object
org.mockito.internal.util.reflection.GenericMaster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Class
<?> Class
<?> getGenericType
(Field field) Finds the generic type (parametrized type) of the field.Class
<?> getGenericType
(Parameter parameter) Resolves the type (parametrized type) of the parameter.
-
Constructor Details
-
GenericMaster
public GenericMaster()
-
-
Method Details
-
getGenericType
Finds the generic type (parametrized type) of the field. If the field is not generic it returns Object.class.- Parameters:
field
- the field to inspect
-
getGenericType
Resolves the type (parametrized type) of the parameter. If the field is not generic it returns Object.class.- Parameters:
parameter
- the parameter to inspect
-
getaClass
-