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

Next revision
Previous revision
research:jtransformer:api:java:pefs:4.2:thist [2015/06/29 13:20]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:4.2:thist [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
  
 +=== thisT(#id) ===
 +
 +This fact marks an identT as access to ''​this''​. The identT references a class and without this marker it would require an additional, non-trivial,​ analysis to distinguish between ''​this''​ and ''​super''​.
 +
 +Supported since JTransformer 4.1.
 +
 +=== Arguments ===
 +== ==
 +**#id:** [[identt|identT]]\\ ​
 +ID of the access to super.
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +Object o = this;
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<​Code>​
 +localT(#​Local,​ ..., #encl, #​refToObject,​ '​o',​ #​fieldAccess).
 +fieldAccessT(#​fieldAccess,​ #Local, #encl, #id3, #abc, #​refToFieldType).
 +identT(#​id3,​ #​fieldAccess,​ #encl, #​RefToThis).
 +thisT(#​id3).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_relation_type_spec(thisT,​[
 +     ​ast_arg(id, ​    ​mult(1,​1,​no ), id,   ​[identT]) ​
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/4.2/thist.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019