Class GenericMetadataSupport.TypeVariableReturnType
java.lang.Object
org.mockito.internal.util.reflection.GenericMetadataSupport
org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVariableReturnType
- Enclosing class:
- GenericMetadataSupport
Generic metadata for
TypeVariable
returned via Method.getGenericReturnType()
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.mockito.internal.util.reflection.GenericMetadataSupport
GenericMetadataSupport.BoundedType, GenericMetadataSupport.TypeVarBoundedType, GenericMetadataSupport.WildCardBoundedType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class<?>
private final TypeVariable<?>[]
private final TypeVariable<?>
Fields inherited from class org.mockito.internal.util.reflection.GenericMetadataSupport
contextualActualTypeParameters
-
Constructor Summary
ConstructorsConstructorDescriptionTypeVariableReturnType
(GenericMetadataSupport source, TypeVariable<?>[] typeParameters, TypeVariable<?> typeVariable) -
Method Summary
Methods inherited from class org.mockito.internal.util.reflection.GenericMetadataSupport
actualTypeArguments, extractRawTypeOf, getActualTypeArgumentFor, hasRawExtraInterfaces, inferFrom, registerAllTypeVariables, registerTypeParametersOn, registerTypeVariablesOn, resolveGenericReturnType
-
Field Details
-
typeVariable
-
typeParameters
-
rawType
-
extraInterfaces
-
-
Constructor Details
-
TypeVariableReturnType
public TypeVariableReturnType(GenericMetadataSupport source, TypeVariable<?>[] typeParameters, TypeVariable<?> typeVariable)
-
-
Method Details
-
readTypeParameters
private void readTypeParameters() -
readTypeVariables
private void readTypeVariables() -
rawType
- Specified by:
rawType
in classGenericMetadataSupport
- Returns:
- Raw type of the current instance.
-
extraInterfaces
- Overrides:
extraInterfaces
in classGenericMetadataSupport
- Returns:
- Returns extra interfaces if relevant, otherwise empty List.
-
rawExtraInterfaces
- Overrides:
rawExtraInterfaces
in classGenericMetadataSupport
- Returns:
- Returns an array with the extracted raw types of
extraInterfaces()
. - See Also:
-
extractActualBoundedTypeOf
-