Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Using EOperations as attribute constraints

Hi Elie,

this is currently not supported and I also cannot think of any workaround. In general, calling EOperations within a transformation could be considered harmful because they could have side-effects.

Cheers;
Christian

2015-01-16 13:11 GMT+01:00 Elie Richa <richa@xxxxxxxxxxx>:
Hello,

I was wondering if there's a way to use EOperations returning scalar values
(EBoolean, EInt...) as attributes in LHS nodes.

I couldn't find a straightforward way to do it (and I don't think there is),
but is there a trick to make it work?

My practical use of this is a higher-order transformation which transforms
Henshin rules :) I'd like to create a rule which simplifies Formulas when
the EOperations isTrue() or isFalse() evaluate to true.

Ideally I would create a Formula node, with an Attribute isTrue = true or
isFalse = true, as if isTrue and isFalse were EAttributes.

AFAIUnderstand this isn't possible, but is there a way to work around it?

Thanks.

--
Elie

_______________________________________________
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


Back to the top