Annotation processing is a tool built in javac for scanning and processing annotations at compile time. In this talk, we go through the steps of if how it works and how to create one for Android using Kotlin and java.
in javac Starts all annotation processors which are not executed Loop over annotated elements inside the processor Find annotated classes, methods, fields etc. Generated new classes with metadata of founded classes Create new files and write the generated string as class Compiler checks if all annotation processors are executed. If not start next ROUND
and Filer) getSupportedAnnotationType(): returns only our custom annotations getSupportedSourceVersion(): Always return latest java version process(): This were the magic happen. Starts rounding and gives all annotated elements