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
input
IEventThe NMeta event
context
ITransformationContextThe 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
input
IEventThe 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
input
IEventThe input model element
output
CodeMemberEventThe output model element
context
ITransformationContextThe transformation context