To
assure
reverse engineering works correctly for Java annotations,
note the following
information:
- To control the behavior of
reverse engineering,
use the JAVA_ReverseEngineering::ImplementationTrait::
ImportJavaAnnotation property. The following values are available
for this property: - None. All code parts
related to Java Annotation are
ignored
- Model. Java annotations
are imported as model elements (AnnotationType, JavaAnnotation, and
AnnotationUsage)
- Verbatim. Java annotation
Usage is imported as a verbatim text to JavaAnnotation property of
the corresponded element. AnnotationTypes are imported as model elements.
Verbatim is the default value.
- Mixed. Java annotation
are imported as model elements; if this fails, usage is still imported
as a verbatim text to JavaAnnotation.
- Specify
a correct CLASSPATH for reverse engineering
is important for the correct result of Reverse Engineering of Java Annotations.
- When you use both schemes of Reverse Engineering
of Java Annotations (Model and
Verbatim) the code generated for the model created by RE is the same
as in the original code (semantically).
- Roundtrip
completely ignores all code parts related
to Java annotations. Nothing
changes.