Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Excluded subtypes for nodes

Hi Christian,

it should be possible to just add a NAC containing a rule-node mapped to the LHS' unit-node. This should provide a negated type constraint that ensures that the matched unit is not a rule.

Regards,
Gregor

Am 26.09.2011 12:00, schrieb Christian Krause:
Hi,
I would like to add the following feature to Node:

- excludedSubTypes: EClass 0..*

The meaning is that for an object to be able to be matched, it must not inherit from any of the classes in this list (but of course it still must implement the class specified in the "type" attribute).

A concrete example: I want to define a transformation for the Henshin generator model. One rule should map a "TransformationUnit" to a "GenUnit". Another rule should map "Rule" to "GenRule". For the first rule I need to specify somehow that the matched unit is not a rule; so I need to exclude the subType "Rule" here.

The required modifications to the editors and the interpreter are minimal. Ok with you?

Ciao,
Christian
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev




Back to the top