Hi all,

It would be nice to have some convenience methods for working with
JaMoPP. Not sure if all methods are at the right place, but I hope
it's clear what is needed:

-----------------------------------------------

List<Class> findImplementors(Interface intf)
List<Class> findImplementors(String fullQualifiedInterfaceName)

List<Class> findSubClasses(Class superClass);
List<Class> findSubClasses(String fullQualifiedSuperClassName);

List<Classifier> findAnnotatedClassifiers(Classifier annotation)
List<Classifier> findAnnotatedClassifiers(String fullQualifiedAnnotationName)

MemberContainer {
   List<Member> getAnnotatedMembers(Classifier annotation)
   List<Member> getAnnotatedMembers(String fullQualifiedAnnotationName)
}

AnnotableAndModifiable {
   Classifier getAnnotation(Classifier anotation)
   Classifier getAnnotation(String fullQualifiedAnnotationName)
}

Member {
   Classifier getAnnotation(Classifier anotation)
   Classifier getAnnotation(String fullQualifiedAnnotationName)
}

-----------------------------------------------

Or do methods like that already exist and I haven't found them?

Another idea is to implement something on top of JaMoPP like
http://code.google.com/p/reflections/ - This approach would make it
easier to keep finding things apart from the behaviour of the meta
model. I'm not sure what's better...

Cheers,
Michael


_______________________________________________
emftext-users mailing list
[email protected]
http://mail-st.inf.tu-dresden.de/cgi-bin/mailman/listinfo/emftext-users

Reply via email to