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

research:jtransformer:api:java:pefs:2.9:modifiert [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
 +
 +=== modifierT(#​id,​ '​modifier'​) ​ ===
 +
 +=== Arguments === 
 +== ==
 +**#id**: ( [[classt|classT]],​ [[fieldt|fieldT]],​ [[methodt|methodT]],​ [[constructorT|constructorT]],​ [[classInitializerT|classInitializerT]] )\\
 +ID form parent PEF.\\ ​
 +Note: modifierT have no own ID. They are referenced over the ID from the corresponding parent
 +
 +**modifier:​** atom\\ ​
 +one of serveral atoms:
 +  * '​public'​
 +  * '​private'​
 +  * '​package'​ - //supported since JTransformer 2.8.0//
 +  * '​protected'​
 +  * '​static'​
 +  * '​strictfp'​
 +  * '​synchronized'​
 +  * '​transient'​
 +  * '​native'​
 +  * '​volatile'​
 +  * '​abstract'​
 +  * '​final'​
 +
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +final int i = 3;                       //​modifier "​final"​ for a fieldT
 +...
 +public void myFunction(double i){      //modifier "​public"​ for a methodT ​    
 + ...
 +}
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<Code lang-prolog>​
 +fieldT(#​fieldID,​ #parent ,​...,'​i',​...)
 +modifierT(#​fieldID,​ '​final'​)
 +...
 +methodT(#​methodID,​ ..., '​myFunction',​ ..., type(basic, void, 0), [], ...).
 +modifierT(#​methodID,​ '​public'​).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_relation('​Java',​modifierT,​[
 +     ​ast_arg(id, ​      ​mult(1,​1,​no ), id,   ​[classT,​ fieldT, methodT, constructorT,​ classInitializerT]),​
 +     ​ast_arg(modifier,​ mult(1,1,no ), attr, [atom]) ​
 +]).
 +</​Code>​
  
research/jtransformer/api/java/pefs/2.9/modifiert.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019