Hello there Areeb, thank you for your precious feedback!
It looks like the Api is missing to decorate the .superClass()
and .superInterfaces()
elements with the annotation info, during the construction of the AST. I created a ticket to tackle this, as it is a pretty nice and important improvement to the API.
I fear though, that for now there is no direct way to get this information in your rule implementation
EDIT:
sorry about that, I found another route that you can follow to get to the annotations of the superInterfaces:
superInterfaces().get(0).symbolType().symbol().metadata().annotations()
Give it a try, and let me know if this helps!