I have faced some difficulties with Java parsing. I need somehow to get comments of class, fields, methods etc. via reflection.
I have found JavaParser and it looks like it can elicit comments but I haven't got how to do it as all the examples just parse given string. I have found TypeSolver
that can take Canonical name but it looks like that it can't work with comments.
My question is how to find comments if I have only Class<?>
and also the project has some other jar's
that should also be introspected. Via debugging I see the original source code and it looks like that it is possible to do somehow.
Thanks.
Aucun commentaire:
Enregistrer un commentaire