- Alexey Pomelov
- 09/27/11
Hello!
Can I call the TextGen procedure for the super concept? Something like this:
For Base concept:
... and for Child concept:
Thanks,
Alexey
Can I call the TextGen procedure for the super concept? Something like this:
For Base concept:
append {some common prefix}
... and for Child concept:
append super() {some specific suffix}
Thanks,
Alexey
- Evgeny Gryaznov
- 09/27/11
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.
Instead you can extract text-generation code into an operation an reuse it in append clauses. Create a LanguageTextGenDeclaration root and declare an operation.
- Alexey Pomelov
- 09/27/11
I've called the toString() method in the TextGen procedure. Other code I've implemented within the Behavior Aspect.
- Alexey Pomelov
- 09/28/11
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>!>"
- Evgeny Gryaznov
- 09/29/11
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.
- Alexey Pomelov
- 09/29/11
It is not intuitive. So does TextGen aspect is absolutely useless for concept interfaces? If so, may be it should be forbidden?