public class Test<T>{ } Type genType = getClass().getGenericSuperclass(); Type[] params = ((ParameterizedType)genType).getActualTypeArguments(); Class fanType = (Class)params[0];
获取类范形的Class
原文:http://www.cnblogs.com/wangg-mail/p/4345814.html