C# Class Serenity.CodeGeneration.ServerTypingsGenerator

Inheritance: ServerImportGeneratorBase
Exibir arquivo Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
ServerTypingsGenerator ( ) : Newtonsoft.Json

Protected Methods

Method Description
GenerateAll ( ) : void
GenerateBasicType ( Type type ) : void
GenerateCodeFor ( Type type ) : void
HandleMemberType ( Type memberType, string codeNamespace, StringBuilder sb = null ) : void
IsTS ( ) : bool
ShortenFullName ( ExternalType type, string codeNamespace ) : string

Private Methods

Method Description
FixupSSGenerics ( string typeName ) : string
GenerateEnum ( Type enumType ) : void
GenerateForm ( Type type, Serenity.ComponentModel.FormScriptAttribute formScriptAttribute ) : void
GenerateRowMembers ( Type rowType ) : void
GenerateRowMetadata ( Type rowType ) : void
GenerateSSDeclarations ( ) : void
GenerateService ( Type type ) : void
GetMethodName ( ExternalMethod method, bool preserveMemberCase ) : string
SSDeclarationBaseTypeReference ( ExternalType type, string baseType, string codeNamespace ) : void
SSDeclarationConstructor ( ExternalMethod ctor, string codeNamespace ) : void
SSDeclarationField ( ExternalType type, ExternalMember field, string codeNamespace, bool isStaticClass, bool isSerializable, bool preserveMemberCase ) : void
SSDeclarationMethod ( ExternalMethod method, string codeNamespace, bool isStaticClass, bool preserveMemberCase ) : void
SSDeclarationMethodInternal ( ExternalMethod method, string codeNamespace, bool isStaticClass, bool preserveMemberCase ) : void
SSDeclarationProperty ( ExternalType type, ExternalProperty prop, string codeNamespace, bool isStaticClass, bool isSerializable, bool preserveMemberCase ) : void
SSMethodArguments ( IEnumerable arguments, string codeNamespace ) : void
SSTypeNameToTS ( string typeName, string codeNamespace, string defaultType = "any", string leaveAsIs = null ) : void

Method Details

GenerateAll() protected method

protected GenerateAll ( ) : void
return void

GenerateBasicType() protected method

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

GenerateCodeFor() protected method

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

HandleMemberType() protected method

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

IsTS() protected method

protected IsTS ( ) : bool
return bool

ServerTypingsGenerator() public method

public ServerTypingsGenerator ( ) : Newtonsoft.Json
return Newtonsoft.Json

ShortenFullName() protected method

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