I am looking into various Java Code Analyzer tools . The one that catches the eye is JStyle
because of the following metrics
Depth of Inheritance
Weighted Methods Complexity
However I am not in a position to afford the steep license fee.
Question : Is there any other opensource tools that can generate the same metrics preferably in XML format?