SDA SE Wiki

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

User Tools

Site Tools



classInitializerT(#id, #class,#body)

Represents the initializer declaration.

Added in JT 2.8: Up to 2.8.0 it was part of methodDefT.

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/3.0/classinitializert.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2024