public abstract class GenericTypeResolver
extends java.lang.Object
Title: GenericTypeResolver.java
Description:
bboss workgroup
Copyright (c) 2008
| 构造器和说明 |
|---|
GenericTypeResolver() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.reflect.Type |
getTargetType(MethodParameter methodParam)
Determine the target type for the given parameter specification.
|
static java.util.Map |
getTypeVariableMap(java.lang.Class clazz)
Build a mapping of
TypeVariable names to concrete
Class for the specified Class. |
static java.lang.Class |
resolveParameterType(MethodParameter methodParam,
java.lang.Class clazz)
Determine the target type for the given generic parameter type.
|
static java.lang.Class |
resolveReturnType(java.lang.reflect.Method method,
java.lang.Class clazz)
Determine the target type for the generic return type of the given method.
|
public static java.lang.reflect.Type getTargetType(MethodParameter methodParam)
methodParam - the method parameter specificationpublic static java.lang.Class resolveParameterType(MethodParameter methodParam, java.lang.Class clazz)
methodParam - the method parameter specificationclazz - the class to resolve type variables againstpublic static java.lang.Class resolveReturnType(java.lang.reflect.Method method,
java.lang.Class clazz)
method - the method to introspectclazz - the class to resolve type variables againstpublic static java.util.Map getTypeVariableMap(java.lang.Class clazz)
TypeVariable names to concrete
Class for the specified Class. Searches all super types,
enclosing types and interfaces.