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:tutorial:transformation [2018/04/15 13:50]
127.0.0.1 external edit
research:jtransformer:tutorial:transformation [2018/05/09 01:59] (current)
Line 30: Line 30:
       new_id(NewTypeRef) ​                               % NewTypeRef is a yet unused ID       new_id(NewTypeRef) ​                               % NewTypeRef is a yet unused ID
     ),     ),
-    (                                                                     ​% TRANSFORMATION:​+    (                                                   ​% TRANSFORMATION:​
       delete(FieldAccessTerm), ​                         % delete the field access       delete(FieldAccessTerm), ​                         % delete the field access
       delete(StaticTypeRefTerm), ​                       % delete the static type reference       delete(StaticTypeRefTerm), ​                       % delete the static type reference
       ​       ​
       replace(callT(CallId,​ CallParent, Enclosing, NewTypeRef, [Argument], LoggingMethod,​ [], MethodType))       replace(callT(CallId,​ CallParent, Enclosing, NewTypeRef, [Argument], LoggingMethod,​ [], MethodType))
-                                                        % replace the existing callT fact with the new one (call the logging method instead of System.out.println)+                                                        % replace the existing callT fact with the new one  
 +                                                        % (call the logging method instead of System.out.println)
       ​       ​
       add(staticTypeRefT(NewTypeRef,​ CallId, Enclosing, MyLoggerClass)),​       add(staticTypeRefT(NewTypeRef,​ CallId, Enclosing, MyLoggerClass)),​
research/jtransformer/tutorial/transformation.1523800211.txt · Last modified: 2018/04/15 13:50 by 127.0.0.1

SEWiki, © 2018