I am working on a library where we want to determine how much of our library is being used. I.E. we want to know how many methods in our library are public, but never being called.
Goal:
Static Analysis
Determine how many lines of code call each public method in package A in the current project. If the number of calls is zero, the method should be reported as such.
I belive you are looking for this eclipse plugin –> UCDetector
From the documentation (pay notice to second bullet point)
private
On Larger scale, if you want to do Object Level Static Analysis, look at this tool from IBM –>Structural Analysis for Java. It is really helpful for object analysis of libraries, APIs, etc.