Annotation and Annotation Processor learning materials

The following two articles briefly explain the implementation principles of annotations in JAVA, which are relatively easy to understand. You can try to implement a simple demo;

Understand custom annotations in an hour                         

Understand the Annotation Processor Tool in an hour                         

Android APT (compile-time code generation) best practices


demo ruins

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325901490&siteId=291194637