DISCLAIMER: "Fastest" here refers to execution time.
I'm trying to list all the methods annotated by M
if they are within classes annotated by C
.
I know I can get a list of classes using Reflections.getTypesAnnotatedWith
and then iterate over the classes asking each method if it is annotated by M
. But I wonder if this is the fastest way to do so!
Aucun commentaire:
Enregistrer un commentaire