SDA SE Wiki

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

User Tools

Site Tools


add_new_class_and_file(+Id, +CompID, +Package, +Name, +Defs) is det.

Adds a new classT. In case public modifier for Id already exists a new compilationUnitT and a new fileS under the given Package in the projects first source folder.

Example

packageT(Default,''),
new_ids([Id,CompId]),
add(modifierT(Id,public)),
add_new_class_and_file(Id,CompId,Default,'NewClass',[]).
research/jtransformer/api/java/transformations/add_new_class_and_file.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019