Class[] classes = a.getDeclaredClasses();classes 就是它的所有父类,至于怎么获取每个类的方法、属性、构造器就简单了!
http://www.javayou.com

解决方案 »

  1.   

    我想要类a所有父类的方法属性名称哦~~这个好象得不到啊?这个好象是取得其成员的一些信息的,比如内部类等~~??Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object. This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces. This method returns an array of length 0 if the class declares no classes or interfaces as members, or if this Class object represents a primitive type, an array class, or void.jdk上的文档~~本人英文比较差~~:p~~~~~Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object.这句话谁能给我翻译一下~~:)