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
research:jtransformer:api:java:pefs:4.0:importt [2014/07/07 15:03]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:4.0:importt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
  
 +=== importT(#​id,​ #parent, #​import) ​ ===
 +
 +Represents the import declaration.
 +
 +In case of a [[http://​java.sun.com/​docs/​books/​jls/​third_edition/​html/​packages.html#​7.5.3
 +| Single Static Import Declaration]] and [[http://​java.sun.com/​docs/​books/​jls/​third_edition/​html/​packages.html#​7.5.4
 +| Static-Import-on-Demand Declaration]] the created ''​importT(#​id,​ ''​...'',​ ''​...''​)''​ fact is acompanied by an additional ''​[[modifiert|modifierT]](#​id,​ '​static'​)''​ fact.
 +
 +=== Arguments ===
 +== ==
 +**#id:** id\\ 
 +the unique ID assigned to this fact.
 +
 +**#​parent:​** [[compilationUnitT|compilationUnitT]]\\ ​
 +ID of the compilation unit that contains this import declaration.
 +
 +**#​import:​** [[packageT|packageT]],​ [[classt|classT]],​ [[methodT|methodT]],​ [[fieldT|fieldT]]\\
 +ID of the import.
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +import java.io.IOException;​
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +== ==
 +<Code lang-prolog>​
 +importT(#​id,​ #parentID, #importId).
 +</​Code>​
 +
 +=== AST Specification === 
 +== ==
 +<​Code>​
 +ast_node_def('​Java',​importT,​[
 +     ​ast_arg(id, ​     mult(1,1,no ), id,  [importT]), ​
 +     ​ast_arg(parent, ​ mult(1,1,no ), id,  [compilationUnitT]),​
 +     ​ast_arg(import, ​ mult(1,1,no ), id,  [packageT, classT, methodT, fieldT])
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/4.0/importt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019