Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Represents the initializer declaration.
Added in JT 2.8: Up to 2.8.0 it was part of methodDefT.
#id: id
the unique ID assigned to this fact.
#class: classT
ID of the parent/declaring class.
#body: blockT
ID of the block.
class MyClass { static { ... } ... }
class(#class, #compilationUnit, 'MyClass', [..., #init]). classInitializerT(#init, #class, #body). modifierT(#init, static).
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]) ]).