C# Class ServiceStack.NativeTypes.TypeScript.TypeScriptGenerator

Afficher le fichier Open project: ServiceStack/ServiceStack Class Usage Examples

Méthodes publiques

Свойство Type Description
ArrayTypes HashSet
DefaultImports List
DictionaryTypes HashSet
FilterTypes List>.Func
TypeAliases string>.Dictionary

Méthodes publiques

Méthode Description
AddProperties ( System.Text.StringBuilderWrapper sb, MetadataType type, bool includeResponseStatus ) : void
AppendAttributes ( System.Text.StringBuilderWrapper sb, List attributes ) : bool
AppendComments ( System.Text.StringBuilderWrapper sb, string desc ) : bool
AppendDataContract ( System.Text.StringBuilderWrapper sb, MetadataDataContract dcMeta ) : void
AppendDataMember ( System.Text.StringBuilderWrapper sb, MetadataDataMember dmMeta, int dataMemberIndex ) : bool
ConvertFromCSharp ( TextNode node ) : string
DefaultFilterTypes ( List types ) : List
GenericArg ( string arg ) : string
GetCode ( MetadataTypes metadata, IRequest request, INativeTypesMetadata nativeTypes ) : string
NameOnly ( string type ) : string
Type ( MetadataTypeName typeName ) : string
Type ( string type, string genericArgs ) : string
TypeScriptGenerator ( MetadataTypesConfig config ) : System
TypeValue ( string type, string value ) : string

Private Methods

Méthode Description
AddTypeToSortedList ( List allTypes, List sortedTypes, MetadataType metadataType ) : void
AppendType ( System.Text.StringBuilderWrapper &sb, MetadataType type, string lastNS, CreateTypeOptions options ) : string
CreateSortedTypeList ( List allTypes ) : List
FindMetadataTypeByMetadataTypeName ( List allTypes, MetadataTypeName metadataTypeName ) : MetadataType
TypeAlias ( string type ) : string

Method Details

AddProperties() public méthode

public AddProperties ( System.Text.StringBuilderWrapper sb, MetadataType type, bool includeResponseStatus ) : void
sb System.Text.StringBuilderWrapper
type MetadataType
includeResponseStatus bool
Résultat void

AppendAttributes() public méthode

public AppendAttributes ( System.Text.StringBuilderWrapper sb, List attributes ) : bool
sb System.Text.StringBuilderWrapper
attributes List
Résultat bool

AppendComments() public méthode

public AppendComments ( System.Text.StringBuilderWrapper sb, string desc ) : bool
sb System.Text.StringBuilderWrapper
desc string
Résultat bool

AppendDataContract() public méthode

public AppendDataContract ( System.Text.StringBuilderWrapper sb, MetadataDataContract dcMeta ) : void
sb System.Text.StringBuilderWrapper
dcMeta MetadataDataContract
Résultat void

AppendDataMember() public méthode

public AppendDataMember ( System.Text.StringBuilderWrapper sb, MetadataDataMember dmMeta, int dataMemberIndex ) : bool
sb System.Text.StringBuilderWrapper
dmMeta MetadataDataMember
dataMemberIndex int
Résultat bool

ConvertFromCSharp() public méthode

public ConvertFromCSharp ( TextNode node ) : string
node TextNode
Résultat string

DefaultFilterTypes() public static méthode

public static DefaultFilterTypes ( List types ) : List
types List
Résultat List

GenericArg() public méthode

public GenericArg ( string arg ) : string
arg string
Résultat string

GetCode() public méthode

public GetCode ( MetadataTypes metadata, IRequest request, INativeTypesMetadata nativeTypes ) : string
metadata MetadataTypes
request IRequest
nativeTypes INativeTypesMetadata
Résultat string

NameOnly() public méthode

public NameOnly ( string type ) : string
type string
Résultat string

Type() public méthode

public Type ( MetadataTypeName typeName ) : string
typeName MetadataTypeName
Résultat string

Type() public méthode

public Type ( string type, string genericArgs ) : string
type string
genericArgs string
Résultat string

TypeScriptGenerator() public méthode

public TypeScriptGenerator ( MetadataTypesConfig config ) : System
config MetadataTypesConfig
Résultat System

TypeValue() public méthode

public TypeValue ( string type, string value ) : string
type string
value string
Résultat string

Property Details

ArrayTypes public_oe static_oe property

public static HashSet ArrayTypes
Résultat HashSet

DefaultImports public_oe static_oe property

public static List DefaultImports
Résultat List

DictionaryTypes public_oe static_oe property

public static HashSet DictionaryTypes
Résultat HashSet

FilterTypes public_oe static_oe property

public static Func,List> FilterTypes
Résultat List>.Func

TypeAliases public_oe static_oe property

public static Dictionary TypeAliases
Résultat string>.Dictionary