How to build a list of classes annotated with my custom annotation?

后端 未结 8 1154
梦毁少年i
梦毁少年i 2020-12-23 16:52

I want to get a complete list of classes in the application which are annotated with @Custom annotation. What is the best mechanism for this operation?

8条回答
  •  清歌不尽
    2020-12-23 17:36

    Run a find in your IDE on the source, If you trying to do this on compiled classes you would have add a method to them to support this, even if you decompiled the classes I do not think annotations or comments would show up.

提交回复
热议问题