Scanning complete class hierarchy

Hi, I’m looking for a way to scan the complete type hierarchy of an examined class. In special, I want to discover if the class or one of its base classes implements . I already discovered Custom Java Rule: Retrieve Complete Type Hierarchy . But the link with the mentioned example is broken.

I’m using


is there a new valid combination?

Hello @christian.jacob

I updated the broken link in the other post.
In your specific case, I think you could use something like:

ClassTree tree;
// ...

About the versions, the combination you provided is still the latest one for LTS releases. You could eventually consider to use SonarQube though. The version of the Java analyzer is unchanged.
If you want to use the latest version of SonarQube, you can go with:


Hope this helps.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.