Dear all,
I have defined my language, named SARL with the following rule in my grammar:
Action returns xtend:XtendFunction:
{SarlAction}
name=FunctionID
(
=> '('
( parameters+=Parameter
(=>',' parameters+=Parameter)*
)?
')'
)?
;
I have defined a custom implementation of the SarlAction:
public class SarlActionImplCustom extends XtendFunctionImplCustom implements SarlAction {
...
}
In the class SarlFactoryImpl, the function createSarlAction is defined as:
public SarlAction createSarlAction()
{
SarlActionImpl sarlAction = new SarlActionImpl();
return sarlAction;
}
How to change the MWE2 script to generate the SarlFactoryImpl with the following code in place of the previous code:
public SarlAction createSarlAction()
{
SarlActionImplCustom sarlAction = new SarlActionImplCustom();
return sarlAction;
}
[Updated on: Mon, 20 April 2015 08:46]
Report message to a moderator