C# Класс Serenity.CodeGeneration.ServerImportGeneratorBase

Наследование: ImportGeneratorBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
fileIdentifier string
generatedTypes HashSet
lookupScripts List

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

Метод Описание
CanHandleType ( Type memberType ) : bool
ServerImportGeneratorBase ( ) : Serenity.ComponentModel
ShortenNamespace ( Type type, string codeNamespace ) : string

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

Метод Описание
EnqueueType ( Type type ) : bool
EnqueueTypeMembers ( Type type ) : void
GenerateAll ( ) : void
GenerateCodeFor ( Type type ) : void
GetBaseClass ( Type type ) : Type
GetControllerIdentifier ( Type controller ) : string
GetNamespace ( Type type ) : string
GetServiceUrlFromRoute ( Type controller ) : string
HandleMemberType ( Type memberType, string codeNamespace, StringBuilder sb = null ) : void
IsPublicServiceMethod ( MethodInfo method, Type &requestType, Type &responseType, string &requestParam ) : bool
IsTS ( ) : bool
IsUsingNamespace ( string ns ) : bool
MakeFriendlyName ( Type type, string codeNamespace, StringBuilder sb = null ) : string
MakeFriendlyReference ( Type type, string codeNamespace, StringBuilder sb = null ) : void
Reset ( ) : void
ShortenNamespace ( ExternalType type, string codeNamespace ) : string

Приватные методы

Метод Описание
GetMethodName ( ExternalMethod method, bool preserveMemberCase ) : string

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

CanHandleType() публичный статический Метод

public static CanHandleType ( Type memberType ) : bool
memberType System.Type
Результат bool

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

protected EnqueueType ( Type type ) : bool
type System.Type
Результат bool

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

protected EnqueueTypeMembers ( Type type ) : void
type System.Type
Результат void

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

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

GenerateCodeFor() защищенный абстрактный Метод

protected abstract GenerateCodeFor ( Type type ) : void
type System.Type
Результат void

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

protected GetBaseClass ( Type type ) : Type
type System.Type
Результат System.Type

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

protected GetControllerIdentifier ( Type controller ) : string
controller System.Type
Результат string

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

protected GetNamespace ( Type type ) : string
type System.Type
Результат string

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

protected GetServiceUrlFromRoute ( Type controller ) : string
controller System.Type
Результат string

HandleMemberType() защищенный абстрактный Метод

protected abstract HandleMemberType ( Type memberType, string codeNamespace, StringBuilder sb = null ) : void
memberType System.Type
codeNamespace string
sb StringBuilder
Результат void

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

protected IsPublicServiceMethod ( MethodInfo method, Type &requestType, Type &responseType, string &requestParam ) : bool
method System.Reflection.MethodInfo
requestType System.Type
responseType System.Type
requestParam string
Результат bool

IsTS() защищенный абстрактный Метод

protected abstract IsTS ( ) : bool
Результат bool

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

protected IsUsingNamespace ( string ns ) : bool
ns string
Результат bool

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

protected MakeFriendlyName ( Type type, string codeNamespace, StringBuilder sb = null ) : string
type System.Type
codeNamespace string
sb StringBuilder
Результат string

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

protected MakeFriendlyReference ( Type type, string codeNamespace, StringBuilder sb = null ) : void
type System.Type
codeNamespace string
sb StringBuilder
Результат void

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

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

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

public ServerImportGeneratorBase ( ) : Serenity.ComponentModel
Результат Serenity.ComponentModel

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

protected ShortenNamespace ( ExternalType type, string codeNamespace ) : string
type ExternalType
codeNamespace string
Результат string

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

public ShortenNamespace ( Type type, string codeNamespace ) : string
type System.Type
codeNamespace string
Результат string

Описание свойств

fileIdentifier защищенное свойство

protected string fileIdentifier
Результат string

generatedTypes защищенное свойство

protected HashSet generatedTypes
Результат HashSet

lookupScripts защищенное свойство

protected List lookupScripts
Результат List