[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.tmf] How to assign attributes inside rules?
|
Hi,
is there a way to assign attributes to constant values
inside a rule?
class Foo {
attr int alternative;
}
Foo returns my::Foo: 'x' Alternative1 | 'y' Alternative2;
I want to set an attribute in my::Foo depending on
which alternative has been used (e.g. I want to
assign to the attribute 'alternative' 1 if Alternative1
was used and 2 if Alternative2 was used)
Michael
--
Michael Scharf
Wind River Systems GmbH
http://www.WindRiver.com
http://MichaelScharf.blogspot.com/