C# Class Serenity.CodeGeneration.ServerImportGeneratorBase

Inheritance: ImportGeneratorBase
Exibir arquivo Open project: volkanceylan/Serenity

Protected Properties

Property Type Description
fileIdentifier string
generatedTypes HashSet
lookupScripts List

Public Methods

Method Description
CanHandleType ( Type memberType ) : bool
ServerImportGeneratorBase ( ) : Serenity.ComponentModel
ShortenNamespace ( Type type, string codeNamespace ) : string

Protected Methods

Method Description
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

Private Methods

Method Description
GetMethodName ( ExternalMethod method, bool preserveMemberCase ) : string

Method Details

CanHandleType() public static method

public static CanHandleType ( Type memberType ) : bool
memberType System.Type
return bool

EnqueueType() protected method

protected EnqueueType ( Type type ) : bool
type System.Type
return bool

EnqueueTypeMembers() protected method

protected EnqueueTypeMembers ( Type type ) : void
type System.Type
return void

GenerateAll() protected method

protected GenerateAll ( ) : void
return void

GenerateCodeFor() protected abstract method

protected abstract GenerateCodeFor ( Type type ) : void
type System.Type
return void

GetBaseClass() protected method

protected GetBaseClass ( Type type ) : Type
type System.Type
return System.Type

GetControllerIdentifier() protected method

protected GetControllerIdentifier ( Type controller ) : string
controller System.Type
return string

GetNamespace() protected method

protected GetNamespace ( Type type ) : string
type System.Type
return string

GetServiceUrlFromRoute() protected method

protected GetServiceUrlFromRoute ( Type controller ) : string
controller System.Type
return string

HandleMemberType() protected abstract method

protected abstract HandleMemberType ( Type memberType, string codeNamespace, StringBuilder sb = null ) : void
memberType System.Type
codeNamespace string
sb StringBuilder
return void

IsPublicServiceMethod() protected method

protected IsPublicServiceMethod ( MethodInfo method, Type &requestType, Type &responseType, string &requestParam ) : bool
method System.Reflection.MethodInfo
requestType System.Type
responseType System.Type
requestParam string
return bool

IsTS() protected abstract method

protected abstract IsTS ( ) : bool
return bool

IsUsingNamespace() protected method

protected IsUsingNamespace ( string ns ) : bool
ns string
return bool

MakeFriendlyName() protected method

protected MakeFriendlyName ( Type type, string codeNamespace, StringBuilder sb = null ) : string
type System.Type
codeNamespace string
sb StringBuilder
return string

MakeFriendlyReference() protected method

protected MakeFriendlyReference ( Type type, string codeNamespace, StringBuilder sb = null ) : void
type System.Type
codeNamespace string
sb StringBuilder
return void

Reset() protected method

protected Reset ( ) : void
return void

ServerImportGeneratorBase() public method

public ServerImportGeneratorBase ( ) : Serenity.ComponentModel
return Serenity.ComponentModel

ShortenNamespace() protected method

protected ShortenNamespace ( ExternalType type, string codeNamespace ) : string
type ExternalType
codeNamespace string
return string

ShortenNamespace() public method

public ShortenNamespace ( Type type, string codeNamespace ) : string
type System.Type
codeNamespace string
return string

Property Details

fileIdentifier protected_oe property

protected string fileIdentifier
return string

generatedTypes protected_oe property

protected HashSet generatedTypes
return HashSet

lookupScripts protected_oe property

protected List lookupScripts
return List