我正在使用Acceleo-MTL生成Java類。我如何從抽象超類中獲取所有抽象方法?如何從我的超類使用mtl語言獲取抽象方法
要獲得簡單的操作和界面,我用這個:
[comment]Operators[/comment]
[for (o : Operation | class.getOperations())]
[o.generateOperation()/]
[/for]
[comment]Interface Methods[/comment]
[for (interf : Interface | class.getImplementedInterfaces())]
[for (o : Operation | interf.ownedOperation)]
[o.generateInterace()/]
[/for]
[/for]
是否存在一個getter方法摘要方法,如你有getImplementedInterfaces()
的接口?