Wie man alle Superklassen einer Java -Klasse bekommt
Class C = getClass();
while (C != null) {
System.out.println(C.getName());
C = C.getSuperclass();
}
Class C = getClass();
while (C != null) {
System.out.println(C.getName());
C = C.getSuperclass();
}