Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-user] Object Parameters

Hi Mohammed,

yes, simply give the node the same name as your parameter. You can find an example here:

http://www.eclipse.org/henshin/examples.php?example=diningphils

The rule "left" gets a Philosopher object as parameter.

Note that if you apply the rule without setting some of the parameters, the interpreter will try to find a match for it and return the found match.

Cheers,
Christian


2015-08-27 21:00 GMT+02:00 Alabdullatif, Mohammed A.A. <maaa4@xxxxxxxxxxxxxxx>:
Hi,

Passing data type parameters is clear and straightforward when applying the rules but I was trying to pass an object as parameter of the rule but I could not find any example. Can we relate an object parameter to a node in the rule?

Best regards,,,
Mohammed

_______________________________________________
henshin-user mailing list
henshin-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/henshin-user



Back to the top