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:api:java:pefs:4.0:preserve_noparameterboundt [2014/08/05 00:53]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:4.0:preserve_noparameterboundt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
  
 +=== preserve_noParameterBoundT(#​id) ===
 +This fact is used for preserving the original appearance of the source code after transformations. It declares, that no explicit bound for a type parameter is given (therefore extends Object is used as an implicit bound).
 +
 +
 +<Code lang-java>​class A<T> {
 +...
 +</​Code>​
 +
 +instead of 
 +
 +<Code lang-java>​class A<T extends Object> {
 +...
 +</​Code>​
 +
 +== History ==
 +  * JTransformer 3.0: Added as noParameterBoundT
 +  * JTransformer 4.0: Renamed to preserve_noParameterBoundT
 +
 +=== Arguments ===
 +== ==
 +**#id:** [[typeParamT|typeParamT]]\\ ​
 +ID of the typeParamT element.
 +
 +=== Sample Java Source ===
 +
 +==  ==
 +<Code lang-java>​class A<T> {
 +...
 +}
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +
 +==  ==
 +<Code lang-prolog>​
 +classT(Class,​ _, '​A',​ [TypeParam],​ _),
 +typeParamT(TypeParam,​ Class, '​T',​ [RefToObject]),​
 +preserve_noParameterBoundT(TypeParam).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<Code lang-prolog>​
 +ast_relation_type_spec( preserve_noParameterBoundT,​[
 +   ​ast_arg(id, ​     mult(1,1,no ), id,    [id]),
 +   ​ast_arg(element,​ mult(1,1,no ), id,    [typeParamT,​ wildcardT, nullType])
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/4.0/preserve_noparameterboundt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019