SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools



modifierT(#id, 'modifier')

Arguments

#id: ( classT, fieldT, methodT, constructorT, classInitializerT, annotationMemberT )
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

final int i = 3;                       //modifier "final" for a fieldT
...
public void myFunction(double i){      //modifier "public" for a methodT     
	...
}

Its PEF Representation

fieldT(#fieldID, #parent ,...,'i',...)
modifierT(#fieldID, 'final')
...
methodT(#methodID, ..., 'myFunction', ..., type(basic, void, 0), [], ...).
modifierT(#methodID, 'public').

AST Specification

ast_relation('Java',modifierT,[
     ast_arg(id,       mult(1,1,no ), id,   [classT, fieldT, methodT, constructorT, classInitializerT, annotationMemberT]),
     ast_arg(modifier, mult(1,1,no ), attr, [atom]) 
]).
research/jtransformer/api/java/pefs/3.0/modifiert.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2024