How to get all classes that extends specific class

Hi All,

I want to get list of classes that extends specific class.

I am trying to get list of the classes with :

PsiShortNamesCache psnc = PsiShortNamesCache.getInstance(project);
String[] names = psnc.getAllClassNames();

And then watch for every class. But getAllClassNames returns to much records.

Possibly there is another way to get classes from project or module?
Thanks in advance.

Comment actions Permalink

Use the method.

Comment actions Permalink

Thanks, it works for me


Please sign in to leave a comment.