Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow aspects to be top-level entities #1521
Aspects in Umple currently must be embedded in classes and operate on matching methods in that class.
It should be possible to specify a before or after statement at the top level of an Umple program. That would take an extra parameter which would be a pattern of matching classes.
When encountered, such an option would simply copy apply the statement in all matching classes at the metamodel level. This should not require any new code generation, since the existing code generation for aspects should work. All types of aspects should work include generated methods, user-defined methods; and with or without patterns.