C# Класс Zetbox.Generator.AbstractBaseGenerator

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Generate ( Zetbox ctx, string basePath, Compiler compiler ) : void

Защищенные методы

Метод Описание
AbstractBaseGenerator ( IEnumerable schemaProviders ) : System
DeleteOldFiles ( ) : void
Generate_AssemblyInfo ( IZetboxContext ctx ) : string
Generate_CollectionEntries ( IZetboxContext ctx ) : string
Generate_CompoundObject ( IZetboxContext ctx, CompoundObject s ) : string
Generate_Enumeration ( IZetboxContext ctx, Enumeration e ) : string
Generate_Interface ( IZetboxContext ctx, Interface i ) : string
Generate_ObjectClass ( IZetboxContext ctx, ObjectClass objClass ) : string
Generate_Objects ( Zetbox ctx ) : List
Generate_Other ( IZetboxContext ctx ) : IEnumerable
Generate_ProjectFile ( IZetboxContext ctx, string projectGuid, List generatedFileNames, IEnumerable schemaProviders ) : string
InitCodeBasePath ( string basePath ) : void
RunTemplate ( IZetboxContext ctx, string templateName, string filename ) : string
RunTemplateWithExtension ( IZetboxContext ctx, string templateName, string targetFolder, string baseFilename, string extension ) : string
SaveKeyFile ( ) : void
Unidecode ( string filename ) : string

converts the string to ascii using transliteration. uses the _transliterationTable and a nice hack to reduce utf-8 to ASCII. probably works only with western characters.

See http://stackoverflow.com/questions/2173825/slugify-and-character-transliteration-in-c/2173922#2173922

Описание методов

AbstractBaseGenerator() защищенный Метод

protected AbstractBaseGenerator ( IEnumerable schemaProviders ) : System
schemaProviders IEnumerable
Результат System

DeleteOldFiles() защищенный Метод

protected DeleteOldFiles ( ) : void
Результат void

Generate() публичный Метод

public Generate ( Zetbox ctx, string basePath, Compiler compiler ) : void
ctx Zetbox
basePath string
compiler Compiler
Результат void

Generate_AssemblyInfo() защищенный Метод

protected Generate_AssemblyInfo ( IZetboxContext ctx ) : string
ctx IZetboxContext
Результат string

Generate_CollectionEntries() защищенный Метод

protected Generate_CollectionEntries ( IZetboxContext ctx ) : string
ctx IZetboxContext
Результат string

Generate_CompoundObject() защищенный Метод

protected Generate_CompoundObject ( IZetboxContext ctx, CompoundObject s ) : string
ctx IZetboxContext
s CompoundObject
Результат string

Generate_Enumeration() защищенный Метод

protected Generate_Enumeration ( IZetboxContext ctx, Enumeration e ) : string
ctx IZetboxContext
e Enumeration
Результат string

Generate_Interface() защищенный Метод

protected Generate_Interface ( IZetboxContext ctx, Interface i ) : string
ctx IZetboxContext
i Interface
Результат string

Generate_ObjectClass() защищенный Метод

protected Generate_ObjectClass ( IZetboxContext ctx, ObjectClass objClass ) : string
ctx IZetboxContext
objClass ObjectClass
Результат string

Generate_Objects() защищенный Метод

protected Generate_Objects ( Zetbox ctx ) : List
ctx Zetbox
Результат List

Generate_Other() защищенный Метод

protected Generate_Other ( IZetboxContext ctx ) : IEnumerable
ctx IZetboxContext
Результат IEnumerable

Generate_ProjectFile() защищенный Метод

protected Generate_ProjectFile ( IZetboxContext ctx, string projectGuid, List generatedFileNames, IEnumerable schemaProviders ) : string
ctx IZetboxContext
projectGuid string
generatedFileNames List
schemaProviders IEnumerable
Результат string

InitCodeBasePath() защищенный Метод

protected InitCodeBasePath ( string basePath ) : void
basePath string
Результат void

RunTemplate() защищенный Метод

protected RunTemplate ( IZetboxContext ctx, string templateName, string filename ) : string
ctx IZetboxContext
templateName string
filename string
Результат string

RunTemplateWithExtension() защищенный Метод

protected RunTemplateWithExtension ( IZetboxContext ctx, string templateName, string targetFolder, string baseFilename, string extension ) : string
ctx IZetboxContext
templateName string
targetFolder string
baseFilename string
extension string
Результат string

SaveKeyFile() защищенный Метод

protected SaveKeyFile ( ) : void
Результат void

Unidecode() защищенный статический Метод

converts the string to ascii using transliteration. uses the _transliterationTable and a nice hack to reduce utf-8 to ASCII. probably works only with western characters.
See http://stackoverflow.com/questions/2173825/slugify-and-character-transliteration-in-c/2173922#2173922
protected static Unidecode ( string filename ) : string
filename string
Результат string