Class Meta2ClassesTransformation.Event2Event
The transformation rule to transform NMeta events to code events
public class Meta2ClassesTransformation.Event2Event : EventGenerator<IEvent>
- Inheritance
-
Meta2ClassesTransformation.Event2Event
- Inherited Members
Methods
GetEventArgsType(IEvent, ITransformationContext)
Gets the type reference to the event args class
protected override CodeTypeReference GetEventArgsType(IEvent input, ITransformationContext context)
Parameters
inputIEventThe NMeta event
contextITransformationContextThe transformation context
Returns
- CodeTypeReference
A code type reference to the event args
GetName(IEvent)
Gets the name of the generated event
protected override string GetName(IEvent input)
Parameters
inputIEventThe NMeta event
Returns
- string
The name of the generated event
RegisterDependencies()
Registers the dependencies, i.e. requires the
public override void RegisterDependencies()
Transform(IEvent, CodeMemberEvent, ITransformationContext)
Initializes the output event
public override void Transform(IEvent input, CodeMemberEvent output, ITransformationContext context)
Parameters
inputIEventThe input model element
outputCodeMemberEventThe output model element
contextITransformationContextThe transformation context