假设有如下类
class A
{
public void show(Vector<Integer> v) {}
}
在我们不知道Vector中数据的类型的时候 这时候我们只知道这个方法的名字  和参数的个数 ,我们来获取 范型化的实际类型 。 
我们不可能通过 Vector对应的Class类来反射出  泛型集合中的类型  ,但是 我们却可以通过 这个方法所对应的Method类来实现 。
具体如下  :
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Vector;
public class Test3
{
      public static void main(String []args) throws SecurityException, NoSuchMethodException
      {
            Method m=A.class.getMethod("show", Vector.class) ; //反射获得show方法的Method对象
            Type[]t=m.getGenericParameterTypes() ; //获得范型参数的 一个Type数组  Type是Class类的基类 
GenericArrayType, 
ParameterizedType, 
TypeVariable<D>, 
WildcardType  这些都是 实现Type的子接口
            ParameterizedType p=(ParameterizedType)t[0]; //强制转换成Type的子接口 ParameterizedType类型 因为这个接口又可以获得 范型化集合中元素的类型    System.out.println(p.getRawType());                     //获得集合的类型 
            System.out.println(p.getActualTypeArguments()[0]); //获得集合中元素的类型
      }
}