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 GenericMetadataSupport
GenericMetadataSupport.BoundedType, GenericMetadataSupport.TypeVarBoundedType, GenericMetadataSupport.WildCardBoundedType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class<?> private final TypeVariable<?>[]private final TypeVariable<?> Fields inherited from class GenericMetadataSupport
contextualActualTypeParameters -
Constructor Summary
ConstructorsConstructorDescriptionTypeVariableReturnType(GenericMetadataSupport source, TypeVariable<?>[] typeParameters, TypeVariable<?> typeVariable) -
Method Summary
-
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:
rawTypein classGenericMetadataSupport- Returns:
- Raw type of the current instance.
-
extraInterfaces
- Overrides:
extraInterfacesin classGenericMetadataSupport- Returns:
- Returns extra interfaces if relevant, otherwise empty List.
-
rawExtraInterfaces
- Overrides:
rawExtraInterfacesin classGenericMetadataSupport- Returns:
- Returns an array with the extracted raw types of
extraInterfaces(). - See Also:
-
extractActualBoundedTypeOf
-