class TypeParameterResolver {

    public static Type[] resolveParamTypes(Method method, Type srcType) {
        // 获取方法参数类型
        Type[] paramTypes = method.getGenericParameterTypes();
        // 方法定义类型
        Class<?> declaringClass = method.getDeclaringClass();
        Type[] result = new Type[paramTypes.length];
        for (int i = 0; i < paramTypes.length; i++) {
            // 遍历接信息
            result[i] = resolveType(paramTypes[i], srcType, declaringClass);
        }
        return result;
    }

    private  TypeParameterResolver();

}