public static <T> TypedClass<T> wrap(AnnotatedType ant)
{
if (ant instanceof AnnotatedParameterizedType)
{
AnnotatedParameterizedType pant = (AnnotatedParameterizedType) ant;
ParameterizedType pt = (ParameterizedType) ant.getType();
return (TypedClass<T>) wrap(wrapSimple(pt.getRawType()), pant.getAnnotatedActualTypeArguments(), pt, ant.getAnnotations());
}
else if (ant instanceof AnnotatedArrayType)
{
AnnotatedArrayType aant = (AnnotatedArrayType) ant;
TypedClass<?> ctype = wrap(aant.getAnnotatedGenericComponentType());
return new TypedArrayClass<>(ctype, ant.getAnnotations());
}
return wrap(ant.getType(), ant.getDeclaredAnnotations());
}
ReflectionUtils.java 文件源码
java
阅读 47
收藏 0
点赞 0
评论 0
项目:graphql
作者:
评论列表
文章目录