SDA SE Wiki

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

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
research:jtransformer:api:java:pefs:4.0:preserve_markerannotationt [2014/07/08 12:53]
fabian.noth
research:jtransformer:api:java:pefs:4.0:preserve_markerannotationt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
  
 +----
 +=== 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.
 +
 +<Code lang-java>​@MyMarker
 +public void m() {
 +...
 +</​Code>​
 +
 +instead of 
 +
 +<Code lang-java>​@MyMarker()
 +public void m() {
 +...
 +</​Code>​
 +
 +== History ==
 +  * JTransformer 2.3: Added as markerAnnotationT
 +  * JTransformer 4.0: Renamed to preserve_markerAnnotationT
 +
 +=== Arguments ===
 +== ==
 +**id:** [[annotationT|annotationT]]\\
 +ID of the corresponding annotationT
 +
 +===Sample Java Source===
 +== ==
 +<Code lang-java>​
 +@MyMarker
 +public void m(){
 +...
 +}
 +</​Code>​
 +===Its PEF Representation ===
 +== ==
 +<Code lang-prolog>​
 +methodT(Method,​_,​m,​_,​_,​_,​_,​_),​
 +annotationT(Annotation,​ Method, Method, _, []),
 +preserve_markerAnnotationT(Annotation),​
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code> ​
 +ast_relation_type_spec(preserve_markerAnnotationT,​[
 +     ​ast_arg(id, ​    ​mult(1,​1,​no ), id,   ​[annotationT])
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/4.0/preserve_markerannotationt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019