Content deleted Content added
Cafewalter (talk | contribs) →History: Add mention of compile-time annotation processing |
Cafewalter (talk | contribs) →Processing: Add description of compile-time annotation processing |
||
Line 7:
==Processing==
When Java source code is compiled, annotations can be processed by compiler plug-ins called annotation processors. Processors can produce informational messages or create additional Java source files or resources, which in turn may be compiled and processed, but processors cannot modify the annotated code itself. The Java compiler conditionally stores annotation metadata in the class files if the annotation has a RetentionPolicy of CLASS or RUNTIME. Later, the [[JVM]] or other programs can look for the metadata to determine how to interact with the program elements or change their behavior.
==Syntax==
|