Example (using emfatic syntax):
class MyClass {
attr int fooBar;
}
I want to specify the name of the fooBar
field to be _fooBar or fFooBar. Instead of
protected int fooBar = FOO_BAR_EDEFAULT;
I want
protected int _fooBar = FOO_BAR_EDEFAULT;
or
protected int fFooBar = FOO_BAR_EDEFAULT;
or
protected int fooBar_ = FOO_BAR_EDEFAULT;
Is thre a magic annotation like the @GenModel(documentation="my doc")
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=152481#c1)?
class MyClass {
@GenModel(filedName="fFooBar") // would be nice :-)
attr int fooBar;
}
Why? Because often without the escape it is all to easy
to accidentally assign to the fooBar variable in "@generated NO"
methods.