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.1:importondemandt [2015/05/13 19:44]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:4.1:importondemandt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
  
 +=== importOnDemandT(#​id) ===
 +
 +This fact marks an [[importT|import]] as an import on demand (see [[http://​docs.oracle.com/​javase/​specs/​jls/​se8/​html/​jls-7.html#​jls-7.5.2
 +| JLS 7.5.2]] and [[http://​docs.oracle.com/​javase/​specs/​jls/​se8/​html/​jls-7.html#​jls-7.5.4
 +| JLS 7.5.4]]).
 +
 +Supported since JTransformer 4.1.
 +
 +=== Arguments ===
 +== ==
 +**#id:** [[importT|importT]]\\ ​
 +ID of the import declaration.
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +import java.io.*;
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<​Code>​
 +packageT(#​JavaIO,​ '​java.io'​).
 +importT(#​ImportId,​ #ParentId, #JavaIO).
 +importOnDemandT(#​ImportId).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_relation_type_spec(importOnDemandT,​[
 +     ​ast_arg(id, ​    ​mult(1,​1,​no ), id,   ​[importT]) ​
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/4.1/importondemandt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2020