Class TypeParameterResolver

java.lang.Object
org.apache.ibatis.reflection.TypeParameterResolver

public class TypeParameterResolver extends Object
Author:
Iwao AVE!
  • Method Details

    • resolveFieldType

      public static Type resolveFieldType(Field field, Type srcType)
      Resolve field type.
      Parameters:
      field - the field
      srcType - the src type
      Returns:
      The field type as Type. If it has type parameters in the declaration,
      they will be resolved to the actual runtime Types.
    • resolveReturnType

      public static Type resolveReturnType(Method method, Type srcType)
      Resolve return type.
      Parameters:
      method - the method
      srcType - the src type
      Returns:
      The return type of the method as Type. If it has type parameters in the declaration,
      they will be resolved to the actual runtime Types.
    • resolveParamTypes

      public static Type[] resolveParamTypes(Method method, Type srcType)
      Resolve param types.
      Parameters:
      method - the method
      srcType - the src type
      Returns:
      The parameter types of the method as an array of Types. If they have type parameters in the declaration,
      they will be resolved to the actual runtime Types.