C# Class ServiceStack.NativeTypes.Java.JavaGenerator

Show file Open project: ServiceStack/ServiceStack Class Usage Examples

Public Properties

Property Type Description
ArrayTypes HashSet
DefaultGlobalNamespace string
DefaultImports List
DictionaryTypes HashSet
FilterTypes List>.Func
GSonAnnotationsNamespace string
GSonReflectNamespace string
IgnoreTypeNames HashSet
TypeAliases string>.ConcurrentDictionary

Public Methods

Method Description
AddProperties ( System.Text.StringBuilderWrapper sb, MetadataType type, bool includeResponseStatus, bool addPropertyAccessors, string settersReturnType ) : void
AppendAttributes ( System.Text.StringBuilderWrapper sb, List attributes ) : bool
AppendComments ( System.Text.StringBuilderWrapper sb, string desc ) : bool
AppendDataContract ( StringBuilderWrapper sb, MetadataDataContract dcMeta ) : void
AppendDataMember ( 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
JavaGenerator ( MetadataTypesConfig config ) : System
NameOnly ( string type ) : string
Type ( MetadataTypeName typeName ) : string
Type ( string type, string genericArgs ) : string
TypeValue ( string type, string value ) : string

Private Methods

Method Description
AppendType ( StringBuilderWrapper &sb, MetadataType type, string lastNS, CreateTypeOptions options ) : string
GetAllMetadataTypes ( MetadataTypes metadata ) : List
ReferencesGson ( MetadataTypes metadata ) : bool
RemoveIgnoredTypes ( MetadataTypes metadata ) : void
TypeAlias ( string type ) : string

Method Details

AddProperties() public method

public AddProperties ( System.Text.StringBuilderWrapper sb, MetadataType type, bool includeResponseStatus, bool addPropertyAccessors, string settersReturnType ) : void
sb System.Text.StringBuilderWrapper
type MetadataType
includeResponseStatus bool
addPropertyAccessors bool
settersReturnType string
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 ( StringBuilderWrapper sb, MetadataDataContract dcMeta ) : void
sb StringBuilderWrapper
dcMeta MetadataDataContract
return void

AppendDataMember() public method

public AppendDataMember ( StringBuilderWrapper sb, MetadataDataMember dmMeta, int dataMemberIndex ) : bool
sb 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

GenericArg() public method

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

GetCode() public method

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

JavaGenerator() public method

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

NameOnly() public method

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

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 static property

public static HashSet ArrayTypes
return HashSet

DefaultGlobalNamespace public static property

public static string DefaultGlobalNamespace
return string

DefaultImports public static property

public static List DefaultImports
return List

DictionaryTypes public static property

public static HashSet DictionaryTypes
return HashSet

FilterTypes public static property

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

GSonAnnotationsNamespace public static property

public static string GSonAnnotationsNamespace
return string

GSonReflectNamespace public static property

public static string GSonReflectNamespace
return string

IgnoreTypeNames public static property

public static HashSet IgnoreTypeNames
return HashSet

TypeAliases public static property

public static ConcurrentDictionary TypeAliases
return string>.ConcurrentDictionary