简体   繁体   中英

Java - Utility to find the implementation classes of an interface

Is there any utility in java to find the list of all implementation class of an interface. Lets say for an interface how many implementation classes are available. so that i can add or tweak the existing code based on the requirements.
Is that feature ships with Eclipse IDE?
Any open source tool available?

In Eclipse you can see Type Hierarchy by selecting your interface/class name and press shortcut key

  1. In windows CTRL + T
  2. In Mac COMMAND + T

Or, you could simply select your interface/class --> right click --> Open Type Hierarchy

to see the list of all implementation classes for selected interface

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM