metatype typeName;
where:
uml21.Class).The metatype statement is used to specify the metatype for which the contained scripts apply.
This code defines scripts attached to the UML Class type:
package com.mycompany.example;
metatype uml21.Class;
public script qualifiedName() : String {
return self.namespace.name + "." + self.name;
}
private script anotherScript() {
...
}