Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Qualified Enum Literals

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Christian,

no problem for the delay ;)

Before answering your questions I need to provide some more context.
Currently, I'm converting graph transformations into a Boolean
representation to execute the graph transformations symbolically. For
this purpose I need to parse attribute match expressions and attribute
conditions found in the LHS, and attribute assignment expressions
found in the RHS. Now, the tool that executes the transformations
symbolically might be used by other developers as well, so it's hard
to say how they are going to use it. With the context explained, I can
now  answer your questions.
> 
> 1) Are you using generated model classes or a dynamic EMF model?
> 
Currently, I'm using dynamic EMF models, but I would expect that at
some point in the future generated model classes could be used. I
didn't expect a difference here, so I'm curious how this changes the
handling of enums?

> 2) Do you need to use it in expressions, or as constants? E.g.
> "(x>5 ? RED : BLUE)" would be an expression, and just "RED" or
> "BLUE" would be constants.
> 
I anticipate the use of enums in attribute expressions and attribute
conditions on the LHS, and assignment expressions on the RHS. On the
LHS and the RHS, both constant expressions and compound expressions,
for example, the one you provided above, might be used.

best wishes, sebastian

> Cheers, Christian
> 
> 2014-11-09 4:03 GMT+01:00 Sebastian Gabmeyer 
> <sebastian.gabmeyer@xxxxxxxxxxxx
> <mailto:sebastian.gabmeyer@xxxxxxxxxxxx>>:
> 
> Hi!
> 
> Is there a way to fully qualify an enum literal, for example, 
> something like Color::Red?
> 
> best wishes, sebastian 
> _______________________________________________ henshin-dev mailing
> list henshin-dev@xxxxxxxxxxx <mailto:henshin-dev@xxxxxxxxxxx> To
> change your delivery options, retrieve your password, or 
> unsubscribe from this list, visit 
> https://dev.eclipse.org/mailman/listinfo/henshin-dev
> 
> 
> 
> 
> _______________________________________________ henshin-dev mailing
> list henshin-dev@xxxxxxxxxxx To change your delivery options,
> retrieve your password, or unsubscribe from this list, visit 
> https://dev.eclipse.org/mailman/listinfo/henshin-dev
> 

- -- 
Sebastian Gabmeyer
Business Informatics Group (BIG)
Vienna University of Technology

http://www.big.tuwien.ac.at/staff/sgabmeyer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJUYzIHAAoJELSN8YoN2kNZaJIIAKDH2Q41Hk/piFSFd4ZzUond
nGG9ysIC6iCUOfVYbVxiVwL8AEXgVQ+e9q0B3cKMRk/JtSF7aICTSIz9QXK5lmli
1raXd8Eh/EjBft3OSaFIeSXqazn7rVcvE5Ppk8s6+gl5Vd17urzGWsSltTlyCmyR
+YGtFe1K0ojtCeJuD3PDyo8FgLcWboxjeIKyzHWTfxmThRzg49kH1gz3P2XaPPuY
8wRbl7TQWcqv8RiQaf9nUwRmCPB9eFzbFqvgv2/AoFD5Qvmlj+qcYpW3og2OfZII
QsOEzgLs+D18rPB0/fYYbPAnLA2Vit47bPr6IrQBdVjGVCQCQX7tZTXVdOSkk8I=
=LGj3
-----END PGP SIGNATURE-----


Back to the top