Find out which classes of a given API are used

后端 未结 8 880
鱼传尺愫
鱼传尺愫 2020-11-29 06:20

In a Java Project of mine, I would like to find out programmatically which classes from a given API are used. Is there a good way to do that? Through source code parsing or

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 07:01

    Thanks Adam Paynter, It helped me. But what I was looking for is to fetch the dependent classes (recursively)- which means take a feature from a projects. So, need to get all the classes associated with a particular classes and again the used classes of those classes and so on. and also get the jars. So, I Created my own Java Dependency Resolver project Which will find the dependent Classes/jars for a particular class in a Project. I am sharing it here that may come to any use of some body.

提交回复
热议问题