common_helper/src/main/java/com/xiongyingqi/util/EntityHelper.java
public static Collection<Class> getAllSuperClassesOfClass(Class clazz) {
        Collection<Class> classes = new LinkedHashSet<Class>();
        classes.add(clazz);
        Class superClass = clazz.getSuperclass();
        while (superClass != null) {
            classes.add(superClass);
            superClass = superClass.getSuperclass();
        }
        return classes;
    }
public static Collection<Class> getAllSuperClassesOfClass(Class clazz) {
        Collection<Class> classes = new LinkedHashSet<Class>();
        classes.add(clazz);
        Class superClass = clazz.getSuperclass();
        while (superClass != null) {
            classes.add(superClass);
            superClass = superClass.getSuperclass();
        }
        return classes;
    }
public static Collection < Class > getAllSuperClassesOfClass ( Class clazz ) { Collection < Class > classes = new LinkedHashSet < Class > ( ) ; classes . add ( clazz ) ; Class superClass = clazz . getSuperclass ( ) ; while ( superClass != null ) { classes . add ( superClass ) ; superClass = superClass . getSuperclass ( ) ; } return classes ; }
获取类的所有超类 <br>
2013-9-15 下午8:16:21

@return
获取类的所有超类 <br > 2013 - 9 - 15 下午8 : 16 : 21