List all subclasses with fully qualified names

后端 未结 4 738
北海茫月
北海茫月 2021-01-13 08:18

I would like to get a list of all subclasses of a given class with their fully qualified names. I wanted to copy it from Eclipse and paste into a text file like this:

<
4条回答
  •  天命终不由人
    2021-01-13 08:30

    nWire for Java can give you the complete list of classes which extend a given class or implement a specific interface. You will get it in the nWire navigator, which does not provide a copy command.

    However, you can tap into the nWire database, which is a standard H2 database and has a very simple structure, and get everything you need with a simple query. We will be introducing reporting capabilities some time in the future.

    IMHO, it will be less of an effort and you'll get a tool which gives you a lot more.

提交回复
热议问题