add metamodel support for methods

this is a draft, no generator-support is included