Lamiaaa
asked on
Is there a Java Library for software metrics calculation
Is there any java library that calculates different software metrics for classes/packages?
I do NOT need tools/plugins that calculate metrics for my projects. However, I need a java library that I can use in my project to gather metrics (programmatically) from other target projects that my application will be processing.
I do NOT need tools/plugins that calculate metrics for my projects. However, I need a java library that I can use in my project to gather metrics (programmatically) from other target projects that my application will be processing.
ASKER
Thank you Doug for your comment.
After a quick look at JDepend, I noticed that it is mainly for package level metrics. However, I am more interested in class level metrics.
After a quick look at JDepend, I noticed that it is mainly for package level metrics. However, I am more interested in class level metrics.
How about this one: http://qjpro.sourceforge.net/concepts.html
It's open source, written in Java and can be run from ant. Not sure if it can really give you the metrics you want though?
It's open source, written in Java and can be run from ant. Not sure if it can really give you the metrics you want though?
Or this one may be a better fit?
http://www.codeanalyzer.teel.ws/
Again, open source, written in Java. Not sure if it's designed to be run as a library but should be a simple adjustment if it gives you the info you need.
A lot depends on the specific metrics you're looking for.
Of course once you have an open source tool that has all of the code for examining a Java source tree it wouldn't be hard to add your own specific metrics if you have ones in mind that these tools don't provide.
http://www.codeanalyzer.teel.ws/
Again, open source, written in Java. Not sure if it's designed to be run as a library but should be a simple adjustment if it gives you the info you need.
A lot depends on the specific metrics you're looking for.
Of course once you have an open source tool that has all of the code for examining a Java source tree it wouldn't be hard to add your own specific metrics if you have ones in mind that these tools don't provide.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks :))
It can be run standalone but it can also be called as a library - see the example on integrating it with JUnit for an example of it as a library. Also since it's under BSD license I'm sure you could also quickly modify it to be completely headless if you wanted.
Doug