INRIA / INRIA/spoon

How to access all annotations of a CtClass including annotations on the super classes?

Open
#3,294 16 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

Hi,

I'm trying to get all annotations of a CtClass including annotations on the super classes. Is there a simple way to do that.

Right now I'm struggling with the fact that ctClass.getSuperClass() returns a ctTypeReference (and not a CtClass) and there's no annotation on the ctTypeReference object (even though I do have annotation on the superclass).

Any idea?

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.