I was wondering if there was an easy way of determining the complete list of Types that a Java class extends or implements recursively?
for instance:
cla
It's very easy, in case your class is Foo then your code will be like this,
public void getClassDetails() { Class klass = Foo.class; Class> superKlass = klass.getSuperClass(); Class[] interfaces = klass.getInterfaces(); }