public interface ReturnTypeParser
| Modifier and Type | Method and Description |
|---|---|
static void |
findTypeForGenerics(Class<?>[] generics,
Type[] typeArguments,
org.springframework.core.ResolvableType contextType)
Find type for generics.
|
static org.springframework.core.ResolvableType |
getResolvedType(org.springframework.core.ResolvableType resolvableType,
Class<?> contextClass)
Gets resolved type.
|
default Type |
getReturnType(org.springframework.core.MethodParameter methodParameter)
Gets return type.
|
static Type |
getType(org.springframework.core.MethodParameter methodParameter)
Gets type.
|
static void |
resolveType(org.springframework.core.ResolvableType[] resolvableTypes,
Class<?> contextClass)
Resolve type.
|
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)
Resolve variable resolvable type.
|
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 resolveType(org.springframework.core.ResolvableType[] resolvableTypes,
Class<?> contextClass)
resolvableTypes - the resolvable typescontextClass - the context classstatic org.springframework.core.ResolvableType getResolvedType(org.springframework.core.ResolvableType resolvableType,
Class<?> contextClass)
resolvableType - the resolvable typecontextClass - the context classstatic void findTypeForGenerics(Class<?>[] generics, Type[] typeArguments, org.springframework.core.ResolvableType contextType)
generics - the genericstypeArguments - the type argumentscontextType - the context typestatic org.springframework.core.ResolvableType resolveVariable(TypeVariable<?> typeVariable, org.springframework.core.ResolvableType contextType)
typeVariable - the type variablecontextType - the context typedefault Type getReturnType(org.springframework.core.MethodParameter methodParameter)
methodParameter - the method parameterstatic Type getType(org.springframework.core.MethodParameter methodParameter)
methodParameter - the method parameterCopyright © 2020. All rights reserved.