SDA SE Wiki

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

User Tools

Site Tools



classInitializerT(#id, #classT,#body)

Represents the initializer declaration.

Arguments

#id: id
the unique ID assigned to this fact.

#class: classT
ID of the parent/declaring class.

#body: blockT
ID of the block.

Sample Java Source

class MyClass  {   
       static { ... }
...                                              
}

Its PEF Representation

class(#class, #compilationUnit, 'MyClass', [..., #init]).
classInitializerT(#init, #class, #body).
modifierT(#init, static).

AST Specification

ast_node_def('Java',classInitializerT,[
    ast_arg(id,      mult(1,1,no ), id,  [classInitializerT]),
    ast_arg(parent,  mult(1,1,no ), id,  [classT]), 
    ast_arg(body,    mult(0,1,no),  id,  [blockT])
]).
research/jtransformer/api/java/pefs/2.9/classinitializert.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2024