Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Java 5 Syntax Element - supported since JTransformer 2.3.
Represents the annotation of a syntax element.
#annotated: id
the id of the syntax element.1)
#annotation:annotationT
the annotation.
@ThisAnnotation //case 2 : If the annotation is a marker annotation the expression is int anotherField; // flagged by a markerAnnotationT(#id) fact.
fieldT(#Field, _, type(basic, int, 0), 'anotherField', 'null'), annotatedT(#Field, #Annotation), annotationT(#Annotation, #Field, #Enclosing, #AnnotationType, []), markerAnnotationT(#Annotation),
ast_relation('Java',annotatedT,[ ast_arg(id, mult(1,1,no ), id, [id]), ast_arg(annotation, mult(1,1,no ), id, [annotationT]) ]).