How can I extract the java method invocation?
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.
精彩评论