C# Class ServiceStack.NativeTypes.Swift.SwiftGenerator

显示文件 Open project: ServiceStack/ServiceStack Class Usage Examples

Public Properties

Property Type Description
ArrayTypes HashSet
DefaultImports List
DictionaryTypes HashSet
FilterTypes List>.Func
IgnoreArrayReturnTypes bool
IgnorePropertyNames HashSet
IgnorePropertyTypeNames HashSet
IgnoreTypeNames HashSet
OverrideInitForBaseClasses HashSet
TypeAliases string>.ConcurrentDictionary

Public Methods

Method Description
AddProperties ( System.Text.StringBuilderWrapper sb, MetadataType type, bool initCollections, 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
FindType ( MetadataTypeName typeName ) : MetadataType
FindType ( string typeName, string typeNamespace ) : MetadataType
GenericArg ( string arg ) : string
GetCode ( MetadataTypes metadata, IRequest request ) : string
GetPropertes ( MetadataType type ) : List
NameOnly ( string type ) : string
ReturnType ( string type, string genericArgs ) : string
SwiftGenerator ( MetadataTypesConfig config ) : System
Type ( MetadataTypeName typeName ) : string
Type ( string type, string genericArgs ) : string
TypeValue ( string type, string value ) : string

Private Methods

Method Description
AddEnumExtension ( System.Text.StringBuilderWrapper &sbExt, MetadataType type ) : void
AddTypeExtension ( System.Text.StringBuilderWrapper &sbExt, MetadataType type, bool initCollections ) : void
AppendType ( System.Text.StringBuilderWrapper &sb, System.Text.StringBuilderWrapper &sbExt, MetadataType type, string lastNS, CreateTypeOptions options ) : string
CreateType ( Type type ) : MetadataType
ExtractTypeAliases ( CreateTypeOptions options, List typeAliases, List extends, System.Text.StringBuilderWrapper &sbExt ) : void
RemoveIgnoredTypes ( MetadataTypes metadata ) : void
TypeAlias ( string type ) : string

Method Details

AddProperties() public method

public AddProperties ( System.Text.StringBuilderWrapper sb, MetadataType type, bool initCollections, bool includeResponseStatus ) : void
sb System.Text.StringBuilderWrapper
type MetadataType
initCollections bool
includeResponseStatus bool
return void

AppendAttributes() public method

public AppendAttributes ( System.Text.StringBuilderWrapper sb, List attributes ) : bool
sb System.Text.StringBuilderWrapper
attributes List
return bool

AppendComments() public method

public AppendComments ( System.Text.StringBuilderWrapper sb, string desc ) : bool
sb System.Text.StringBuilderWrapper
desc string
return bool

AppendDataContract() public method

public AppendDataContract ( System.Text.StringBuilderWrapper sb, MetadataDataContract dcMeta ) : void
sb System.Text.StringBuilderWrapper
dcMeta MetadataDataContract
return void

AppendDataMember() public method

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

ConvertFromCSharp() public method

public ConvertFromCSharp ( TextNode node ) : string
node TextNode
return string

DefaultFilterTypes() public static method

public static DefaultFilterTypes ( List types ) : List
types List
return List

FindType() public method

public FindType ( MetadataTypeName typeName ) : MetadataType
typeName MetadataTypeName
return MetadataType

FindType() public method

public FindType ( string typeName, string typeNamespace ) : MetadataType
typeName string
typeNamespace string
return MetadataType

GenericArg() public method

public GenericArg ( string arg ) : string
arg string
return string

GetCode() public method

public GetCode ( MetadataTypes metadata, IRequest request ) : string
metadata MetadataTypes
request IRequest
return string

GetPropertes() public method

public GetPropertes ( MetadataType type ) : List
type MetadataType
return List

NameOnly() public method

public NameOnly ( string type ) : string
type string
return string

ReturnType() public method

public ReturnType ( string type, string genericArgs ) : string
type string
genericArgs string
return string

SwiftGenerator() public method

public SwiftGenerator ( MetadataTypesConfig config ) : System
config MetadataTypesConfig
return System

Type() public method

public Type ( MetadataTypeName typeName ) : string
typeName MetadataTypeName
return string

Type() public method

public Type ( string type, string genericArgs ) : string
type string
genericArgs string
return string

TypeValue() public method

public TypeValue ( string type, string value ) : string
type string
value string
return string

Property Details

ArrayTypes public_oe static_oe property

public static HashSet ArrayTypes
return HashSet

DefaultImports public_oe static_oe property

public static List DefaultImports
return List

DictionaryTypes public_oe static_oe property

public static HashSet DictionaryTypes
return HashSet

FilterTypes public_oe static_oe property

public static Func,List> FilterTypes
return List>.Func

IgnoreArrayReturnTypes public_oe static_oe property

public static bool IgnoreArrayReturnTypes
return bool

IgnorePropertyNames public_oe static_oe property

public static HashSet IgnorePropertyNames
return HashSet

IgnorePropertyTypeNames public_oe static_oe property

public static HashSet IgnorePropertyTypeNames
return HashSet

IgnoreTypeNames public_oe static_oe property

public static HashSet IgnoreTypeNames
return HashSet

OverrideInitForBaseClasses public_oe static_oe property

public static HashSet OverrideInitForBaseClasses
return HashSet

TypeAliases public_oe static_oe property

public static ConcurrentDictionary TypeAliases
return string>.ConcurrentDictionary