开发者

How can I extract the java method invocation?

开发者 https://www.devze.com 2023-03-09 05:50 出处:网络
Suppose in my project written in Java I have some classes and each of these classes has some methods. I want to know which methods never invoked in my project. I implemented a simple program by using

Suppose in my project written in Java I have some classes and each of these classes has some methods. I want to know which methods never invoked in my project. I implemented a simple program by using a Parser to extact the name of all methods in my project through using the first line of method's definitions. But my question is tha开发者_Go百科t "Is there any parser or software to extract the method's invocation".


Oh my god. Just use the IDE. Either IntelliJ Idea or Eclipse or NetBeans can do the search. Even Idea will grey out the unused methods. Also, uou can trigger the search by Alt + F7 keystroke on the method name.


Project Jackpot is a tool to do this kind of transformation. See this presentation for more information.

It seems to have migrated to a separate project on bitbucket.

0

精彩评论

暂无评论...
验证码 换一张
取 消