Package org.apache.ibatis.reflection
Class TypeParameterResolver
- java.lang.Object
-
- org.apache.ibatis.reflection.TypeParameterResolver
-
public class TypeParameterResolver extends java.lang.Object
- Author:
- Iwao AVE!
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.reflect.Type
resolveFieldType(java.lang.reflect.Field field, java.lang.reflect.Type srcType)
static java.lang.reflect.Type[]
resolveParamTypes(java.lang.reflect.Method method, java.lang.reflect.Type srcType)
static java.lang.reflect.Type
resolveReturnType(java.lang.reflect.Method method, java.lang.reflect.Type srcType)
-
-
-
Method Detail
-
resolveFieldType
public static java.lang.reflect.Type resolveFieldType(java.lang.reflect.Field field, java.lang.reflect.Type srcType)
- Returns:
- The field type as
Type
. If it has type parameters in the declaration,
they will be resolved to the actual runtimeType
s.
-
resolveReturnType
public static java.lang.reflect.Type resolveReturnType(java.lang.reflect.Method method, java.lang.reflect.Type srcType)
- Returns:
- The return type of the method as
Type
. If it has type parameters in the declaration,
they will be resolved to the actual runtimeType
s.
-
resolveParamTypes
public static java.lang.reflect.Type[] resolveParamTypes(java.lang.reflect.Method method, java.lang.reflect.Type srcType)
- Returns:
- The parameter types of the method as an array of
Type
s. If they have type parameters in the declaration,
they will be resolved to the actual runtimeType
s.
-
-