Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access annotation from MethodDeclaration #4288

Open
jlerbsc opened this issue Jan 3, 2024 · 0 comments
Open

How to access annotation from MethodDeclaration #4288

jlerbsc opened this issue Jan 3, 2024 · 0 comments
Labels
Improvement Not a bug, but a way that JP can be be enhanced to work better.

Comments

@jlerbsc
Copy link
Collaborator

jlerbsc commented Jan 3, 2024

From javaparser gitter channel

"JavassistClassDeclaration provides access to the annotations of the class, while JavassistMethodDeclaration does not do the same for methods, even though the underlying CtMethod class does have access to the method annotations.

Is there any way to get the annotations of a resolved method? "

@jlerbsc jlerbsc added the Improvement Not a bug, but a way that JP can be be enhanced to work better. label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Not a bug, but a way that JP can be be enhanced to work better.
Projects
None yet
Development

No branches or pull requests

1 participant