C# Class NMF.Models.Meta.Meta2ClassesTransformation

The transformation to transform an NMeta metamodel to code
Inheritance: ReflectiveTransformation
Afficher le fichier Open project: NMFCode/NMF Class Usage Examples

Méthodes protégées

Méthode Description
CreateReference ( IType type, bool isReference, ITransformationContext context ) : CodeTypeReference

Creates a reference to the given NMeta type

GetResourceKey ( Model model ) : string

Gets the resource key for the given model element

IsValueType ( IType type ) : bool

Decides whether the given type is a value type

Private Methods

Méthode Description
CreateTypeReference ( ITypedElement typedElement, System attributePersistor, System getCollectionType, ITransformationContext context ) : CodeTypeReference
IsString ( IType type ) : bool

Method Details

CreateReference() protected static méthode

Creates a reference to the given NMeta type
protected static CreateReference ( IType type, bool isReference, ITransformationContext context ) : CodeTypeReference
type IType The NMeta type
isReference bool A value indicating whether to default to IModelElement or object
context ITransformationContext The transformation context
Résultat System.CodeDom.CodeTypeReference

GetResourceKey() protected méthode

Gets the resource key for the given model element
protected GetResourceKey ( Model model ) : string
model Model The model for which to generate a resource key
Résultat string

IsValueType() protected méthode

Decides whether the given type is a value type
protected IsValueType ( IType type ) : bool
type IType The NMeta type
Résultat bool