public interface ReturnTypeParser
| Modifier and Type | Method and Description |
|---|---|
static void |
findTypeForGenerics(Class<?>[] generics,
Type[] typeArguments,
org.springframework.core.ResolvableType contextType) |
default Type |
getReturnType(org.springframework.core.MethodParameter methodParameter) |
static Type |
getType(org.springframework.core.MethodParameter methodParameter) |
static Type |
resolveType(Type genericType,
Class<?> contextClass)
This is a copy of GenericTypeResolver.resolveType which is not available on spring 4.
|
static org.springframework.core.ResolvableType |
resolveVariable(TypeVariable<?> typeVariable,
org.springframework.core.ResolvableType contextType) |
static Type resolveType(Type genericType, @Nullable Class<?> contextClass)
genericType - the (potentially) generic typecontextClass - a context class for the target type, for example a class
in which the target type appears in a method signature (can be null)static void findTypeForGenerics(Class<?>[] generics, Type[] typeArguments, org.springframework.core.ResolvableType contextType)
static org.springframework.core.ResolvableType resolveVariable(TypeVariable<?> typeVariable, org.springframework.core.ResolvableType contextType)
default Type getReturnType(org.springframework.core.MethodParameter methodParameter)
static Type getType(org.springframework.core.MethodParameter methodParameter)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.