Which Java code analyzer is recommended for reporting?

I need a static code analyzer for Java that creates an output file about: relationships between classes (also inheritance relationships), class fields, method signatures and method call hierarchies.

The important point is that analytical data can be (easily) processed by the program. (I need analysis for a kind of automatic refactoring tool for a university.)

+4
source share
1 answer

JastAdd is a good source level analyzer (and much more).

However, you may prefer to work at the bytecode level. It is simpler, faster, provides all the requested information, works without a source (obviously) and with other languages ​​based on the JVM. Soot or ASM is a good choice for this.

UPDATED

Of course, with bytecode you cannot really do refactoring at the source level (although you can modify the bytecode).

For completeness, you can combine both approaches.

+1
source

All Articles