Table of Contents

Class MetaFacade

Namespace
NMF.Models.Meta
Assembly
NMF.Models.MetaTransformation.dll

Denotes a facade for the code generator

public static class MetaFacade
Inheritance
MetaFacade
Inherited Members

Methods

CreateCode(INamespace, string)

Generates the code for the given namespace

public static CodeCompileUnit CreateCode(INamespace ns, string overAllNamespace)

Parameters

ns INamespace

the namespace for which code should be generated

overAllNamespace string

The namespace that should be prepended to the generated code

Returns

CodeCompileUnit

A compilation unit with the generated code

GenerateCode(CodeCompileUnit, CodeDomProvider, string, bool)

Generates code for the given unit with the given code provider

public static void GenerateCode(CodeCompileUnit unit, CodeDomProvider generator, string target, bool splitToFolders)

Parameters

unit CodeCompileUnit

The code compile unit

generator CodeDomProvider

The code provider

target string

The target path

splitToFolders bool

True, if the unit should be split up in one class per file, otherwise false

SplitCompileUnit(CodeCompileUnit)

Splits the provided code compile unit into chunks such that it contains one class per file

public static IDictionary<string, CodeCompileUnit> SplitCompileUnit(CodeCompileUnit unit)

Parameters

unit CodeCompileUnit

The unit containing all the code

Returns

IDictionary<string, CodeCompileUnit>

A dictionary of paths and code compile units