SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools



preserve_markerAnnotationT(#id)

This fact is used for preserving the original appearance of the source code after transformations. It declares, that the parentheses of the annotation should be omitted.

@MyMarker
public void m() {
...

instead of

@MyMarker()
public void m() {
...
History
  • JTransformer 2.3: Added as markerAnnotationT
  • JTransformer 4.0: Renamed to preserve_markerAnnotationT

Arguments

id: annotationT
ID of the corresponding annotationT

Sample Java Source

@MyMarker
public void m(){
...
}

Its PEF Representation

methodT(Method,_,m,_,_,_,_,_),
annotationT(Annotation, Method, Method, _, []),
preserve_markerAnnotationT(Annotation),

AST Specification

ast_relation_type_spec(preserve_markerAnnotationT,[
     ast_arg(id,     mult(1,1,no ), id,   [annotationT])
]).
research/jtransformer/api/java/pefs/4.2/preserve_markerannotationt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019