Reputation: 21
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 that "Is there any parser or software to extract the method's invocation".
Upvotes: 0
Views: 140
Reputation: 43108
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.
Upvotes: 2
Reputation: 44746
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.
Upvotes: 0