blob: 9767d810e2caf52fd01344c8fb153a07bc32312d [file] [log] [blame]
modeltype ECORE uses 'http://www.eclipse.org/emf/2002/Ecore';
transformation t(
in inModel : ECORE, out outModel : ECORE);
main() {
inModel.rootObjects()[EPackage]->map p2p();
}
constructor EClass::EClass(s : String, op : EOperation) {
name := s;
eOperations += op;
}
mapping EPackage::p2p() : EPackage {
name := self.name;
eClassifiers += new EClass("AClass", new EOperation());
-- eClassifiers += new EClass();
}