mixins java extension
Hi,
I 'd like to add a root-level java extension for mixins (= abstract subclass). So, my syntax will be something like:
Is there any similar example i could look at (most of the examples i have seen about mps' java extensions are about simple non-root constructs like 'unless' or 'ranges')? Would it be helpful to check e.g. baseLanguage's interface implementation?
Any other tip/help would be much appreciated.
Thank you,
George.
I 'd like to add a root-level java extension for mixins (= abstract subclass). So, my syntax will be something like:
Code
mixin MyMixin<SuperClass> {
int myfield;
void method1() {
myfield++'
SuperClass.method1();
}
}
Is there any similar example i could look at (most of the examples i have seen about mps' java extensions are about simple non-root constructs like 'unless' or 'ranges')? Would it be helpful to check e.g. baseLanguage's interface implementation?
Any other tip/help would be much appreciated.
Thank you,
George.
Please sign in to leave a comment.
Yes sure, take a look on jetbrains.mps.baseLanguage.extension it makes just the same things.
What do you mean by jetbrains.mps.baseLanguage.extension? The baseLanguage's extensions like closures, collections, dates etc? If yes, then AFAIK all these extension are not root-level.
Good luck!