Calling the textgen procedure for super concept

Hello!

Can I call the TextGen procedure for the super concept? Something like this:
For Base concept:
append {some common prefix}
prettyPrint();
... and for Child concept:
append super() {some specific suffix}
prettyPrint();

Thanks,
Alexey
6 comments
Comment actions Permalink
I'm afraid there is no way to invoke TextGen for the super concept. But if you have no text gen declared for the concept, the inherited one is used.

Instead you can extract text-generation code into an operation an reuse it in append clauses. Create a LanguageTextGenDeclaration root and declare an operation.
0
Comment actions Permalink
I've called the toString() method in the TextGen procedure. Other code I've implemented within the Behavior Aspect.
0
Comment actions Permalink
I've found, that TextGen declared for concept interface is not inherited. For abstract concept it works, but not for interface. Generation results into "<!TextGen not found for <concrete concept>!>"
0
Comment actions Permalink
Concept interface is very similar to java interface, except it can provide the default implementation of behavior methods and constraints. It cannot provide TextGen though.
0
Comment actions Permalink
It is not intuitive. So does TextGen aspect is absolutely useless for concept interfaces? If so, may be it should be forbidden?
0

Please sign in to leave a comment.