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

research:jtransformer:api:java:pefs:4.2:omit_fieldt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
  
 +=== omit_fieldT(#​id,​ #reference) ===
 +
 +This fact is used for preserving the original appearance of the source code after transformations. It declares that the declaration of a variable belongs to an [[preserve_inlinedeclarationt|inline declaration]].
 +
 +== History ==
 +  * JTransformer 2.9: Added as inlinedT
 +  * JTransformer 4.0: Renamed to preserve_inlinedT
 +  * JTransformer 4.1: Renamed to omit_fieldT
 +
 +=== Arguments ===
 +== ==
 +**#id:** [[fieldt|fieldT]],​ [[localt|localT]]\\ ​
 +ID of the variable.
 +
 +**#​reference:​** [[fieldt|fieldT]],​ [[localt|localT]]\\ ​
 +Reference to the first variable in the inline declaration.
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +...
 +int i, j, k;
 +...
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<Code lang-prolog>​
 +fieldT(FirstField, ​ Parent, Type, '​i',​ null).
 +fieldT(SecondField,​ Parent, Type, '​j',​ null).
 +fieldT(ThirdField, ​ Parent, Type, '​k',​ null).
 +preserve_inlineDeclarationT(FirstField,​ [SecondField,​ ThirdField]).
 +omit_fieldT(SecondField,​ FirstField).
 +omit_fieldT(ThirdField,​ FirstField).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_relation_type_spec(omit_fieldT,​[
 +     ​ast_arg(id, ​    ​mult(1,​1,​no ), id,   ​[fieldT,​ localT]),
 +     ​ast_arg(ref, ​   mult(1,1,no ), id,   ​[fieldT,​ localT]) ​
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/4.2/omit_fieldt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019