1

Possible Duplicate:
How do you find all subclasses of a given class in Java?

I am trying to get the sub class name list, if we know super class. I tried through reflection. Seems to be there is no API to get the sub class name list.

public abstract class Base{
  /* method implmentation */
}

public class A1 extends Base{
  /* method implmentation */
}
public class A2 extends Base{
  /* method implmentation */
}

How to get sub classes names if we know abstract class name "Base"?

Thanks in advance

Community
  • 1
  • 1
user1673257
  • 501
  • 1
  • 4
  • 5
  • check out this implementation [jprobe](https://code.google.com/p/jprobe/source/browse/trunk/jprobe-1.0/src/org/jprobe/classpath/AbstractClassPath.java) – user1406062 Sep 15 '12 at 11:05

0 Answers0