How to find all classes in a project that extend a specific library?

I am looking for a way to find all classes that extend classes from a specific library. Is there any way to do this other than with a manual inspection?

Thank you for your help.

+4
source share
4 answers

Suppose the library defines the com.foo.bar package (and subpackages). You will have to do what you want by doing a Java search for the search string "com.foo.bar. *", With the option "Type" as "Search" and "Implementation" as "Limit".

+3
source

You can use the Eclipse type hierarchy view to find subclasses of a particular class. I do not know if you can do this for all classes of this library.

+1
source

You can use tattletale to create a dependency report. It has two reports, called Classes Dependent and Classes Dependent, which list each class and their dependencies. This should be useful for you.

0
source

Just search for the import statement provided by this package from this library.

-1
source

Source: https://habr.com/ru/post/1345222/


All Articles