Annotation management
The invention, which may be a kind of annotations processor, detects zero or more tagsets turned on or selected at runtime. The annotations adapter reads an abstract unit from a java file, and if an annotation of the abstract unit has a tag that is among the tags of a turned on tagset, then the annotations adapter may generate an artifact showing the influence of the annotation. Such a process may continue until there are no more abstract units to process. Comments or annotations that fail to be tagged with a tag of a selected tagset may, nevertheless, be mentioned with a kind of ‘place-holder’ indicating that such comments exist.
1. A method for generating software development artifacts from respective code sections selectively annotated as active, the method comprising:
parsing source code to identify both active and inactive tagsets of tags;
identifying in the source code, code sections annotated with a tag in a tagset identified as active, and code sections annotated with a tag in a tagset identified as inactive; and,
skipping processing of the code sections annotated with a tag in a tagset identified as inactive, but generating artifacts external to the source code for the code sections annotated with a tag in a tagset identified as active.
2. The method for generating of claim 1 further comprising writing a place-holder statement to an artifact file for each code section in the source code skipped for processing for having been annotated with a tag in a tagset identified as inactive.