Class Meta2ClassesTransformation.Operation2Method
The transformation rule to transform operations
Inheritance
Inherited Members
Namespace: NMF.Models.Meta
Assembly: NMF.Models.MetaTransformation.dll
Syntax
public class Meta2ClassesTransformation.Operation2Method : TransformationRule<IOperation, CodeMemberMethod>
Methods
| Edit this page View SourceCreateBagInterfaceType(CodeTypeReference)
Creates the bag interface type for the given element type
Declaration
protected virtual CodeTypeReference CreateBagInterfaceType(CodeTypeReference elementTypeReference)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeReference | elementTypeReference | The element type |
Returns
Type | Description |
---|---|
CodeTypeReference | The bag interface type reference, by default the generic ICollection |
CreateListInterfaceType(CodeTypeReference)
Creates the list interface type for the given element type
Declaration
protected virtual CodeTypeReference CreateListInterfaceType(CodeTypeReference elementTypeReference)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeReference | elementTypeReference | The element type |
Returns
Type | Description |
---|---|
CodeTypeReference | The list interface type reference, by default the generic IList |
CreateOrderedSetInterfaceType(CodeTypeReference)
Creates the ordered set interface type for the given element type
Declaration
protected virtual CodeTypeReference CreateOrderedSetInterfaceType(CodeTypeReference elementTypeReference)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeReference | elementTypeReference | The element type reference |
Returns
Type | Description |
---|---|
CodeTypeReference | The ordered set interface type, by default the generic IOrderedSet interface from NMF.Collections.Generic |
CreateSetInterfaceType(CodeTypeReference)
Creates the unordered set interface type for the given element type
Declaration
protected virtual CodeTypeReference CreateSetInterfaceType(CodeTypeReference elementTypeReference)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeReference | elementTypeReference | The element type reference |
Returns
Type | Description |
---|---|
CodeTypeReference | The unordered set interface type, by default the generic ISet |
RegisterDependencies()
Registers the dependencies, i.e. transform the parameters
Declaration
public override void RegisterDependencies()
Overrides
| Edit this page View SourceTransform(IOperation, CodeMemberMethod, ITransformationContext)
Initialize the generated operation
Declaration
public override void Transform(IOperation input, CodeMemberMethod output, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
IOperation | input | The input NMeta operation |
CodeMemberMethod | output | The generated code method |
ITransformationContext | context | The transformation context |