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:4.2:modifiert [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
 +
 +=== modifierT(#​id,​ #parent, '​modifier'​) ​ ===
 +
 +=== Arguments === 
 +== ==
 +**#id**: id\\
 +The unique ID assigned to this fact.
 +
 +**#​parent**:​ ( [[importt|importT]],​ [[classt|classT]],​ [[fieldt|fieldT]],​ [[methodt|methodT]],​ [[constructort|constructorT]],​ [[classinitializert|classInitializerT]],​ [[annotationmembert|annotationMemberT]],​ [[localt|localT]],​ [[paramt|paramT]] )\\
 +ID form parent PEF.
 +
 +**modifier:​** atomic\\ ​
 +one of the atoms:
 +  * '​public'​
 +  * '​private'​
 +  * '​package' ​
 +  * '​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(#​modifierID1,​ #fieldID, '​final'​),​
 +...
 +methodT(#​methodID,​ ..., '​myFunction',​ ...),
 +modifierT(#​modifierID2,​ #methodID, '​public'​).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_node_type_spec(modifierT,​[
 +     ​ast_arg(id, ​    ​mult(1,​1,​no ), id,   ​[modifierT]),​
 +     ​ast_arg(parent,​ mult(1,1,no ), id,   ​[importT,​classT,​fieldT,​methodT,​ constructorT,​ classInitializerT,​ annotationMemberT,​ localT, paramT]),
 +     ​ast_arg(modifier,​mult(1,​1,​no ),attr, [atomic]) ​
 +]).
 +</​Code>​
  
research/jtransformer/api/java/pefs/4.2/modifiert.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019