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:3.0:typeparamst [2013/07/01 18:31]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:3.0:typeparamst [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +
 +----
 +
 +=== typeParamsT(#​id,​ [#​paramRef_1,​ ...]) === 
 +
 +This fact contains the information,​ what type parameters a class, method or constructor has. Facts for classes, methods and constructors do not contain information about their type parameters.
 +
 +Supported since JTransformer 3.0.
 +
 +=== Arguments ===
 +== == 
 +**#id:** [[classT|classT]],​ [[methodT|methodT]],​ [[constructorT|constructorT]]\\ ​
 +the ID of the class, method or constructor.
 +
 +**[#​paramRef_1,​ ...]:** [[typeParamT|typeParamT]]\\
 +list of IDs of type parameters that belong to the class, method or constructor.
 +
 +=== Sample Java Source ===
 +
 +==  ==
 +<Code lang-java>​
 +<T> void m(){
 +    ...
 +}
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +
 +==  ==
 +<Code lang-prolog>​
 +methodT(#​meth,​ ..., '​m',​ [], ..., [], ...).
 +typeParamT(#​typeparam,​ #meth, '​T',​ [#​typeref]).
 +typeRefT(#​typeref,​ #typeparam, #meth, #object).
 +classT(#​object,​ ..., '​Object',​ ...).
 +
 +typeParamsT(#​meth,​ [#​typeparam]).
 +
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_relation('​Java',​ typeParamsT,​[
 +    ast_arg(id, ​      ​mult(1,​1,​no ), id, [classT,​methodT,​constructorT]),​
 +    ast_arg(paramRef,​ mult(1,​*,​ord ),id, [typeParamT]) ​     ​
 +]).
 +</​Code>​
 +
 +
  
research/jtransformer/api/java/pefs/3.0/typeparamst.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019