C# Класс DefaultNamespace.BaseGenerator

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
allowAbbreviations bool
beQuiet bool
defaultAbbreviation TypeNames
lineSeparator string
showAdvancedness bool
showFullNames bool
showInherited bool
showModule bool
showPackage bool
showPrivate bool
showProtected bool
showPublic bool

Открытые методы

Метод Описание
AbbreviateName ( String name, String search, String replace ) : String
AppendClassSignature ( StringBuilder sb, Type c ) : void
AppendClassTrailer ( StringBuilder sb, Type c ) : void
AppendConstructorFooter ( StringBuilder sb ) : void
AppendConstructorHeader ( StringBuilder sb ) : void
AppendConstructorSignature ( StringBuilder sb, ConstructorInfo mi ) : void
AppendFieldFooter ( StringBuilder sb ) : void
AppendFieldHeader ( StringBuilder sb ) : void
AppendFieldSignature ( StringBuilder sb, FieldInfo fi ) : void
AppendMethodFooter ( StringBuilder sb ) : void
AppendMethodHeader ( StringBuilder sb ) : void
AppendMethodSignature ( StringBuilder sb, MethodInfo mi ) : void
AppendPropertyFooter ( StringBuilder sb ) : void
AppendPropertyHeader ( StringBuilder sb ) : void
AppendPropertySignature ( StringBuilder sb, PropertyInfo pi ) : void
GetClassCode ( Type cls ) : String
Show ( FieldInfo field ) : bool
Show ( MemberInfo member ) : bool
Show ( Type type ) : bool

Защищенные методы

Метод Описание
AppendArrayBrackets ( StringBuilder sb, Type cls ) : void
AppendClassModifiers ( StringBuilder sb, Type cls ) : void

Get the modifiers for the class (public, final, abstract).

AppendFieldModifiers ( StringBuilder sb, FieldInfo f ) : void

Retrieves the modifiers on the field (final, static).

AppendFieldType ( StringBuilder sb, FieldInfo f, TypeNames options ) : void

Retrieves the type of the field, checking for an array type

AppendFieldVisibility ( StringBuilder sb, FieldInfo f ) : void

GetVisibility retrieves the visibility of the field (public, etc.).

AppendMethodModifiers ( StringBuilder sb, MethodInfo mi ) : void

GetModifiers returns a string representing the modifiers on a method. The method only applies to an actual method, not a constructor. It

AppendMethodReturnType ( StringBuilder sb, MethodInfo mi, TypeNames options ) : void

Retrieve the return type of the method. note that we can only do so on a normal method, not on a ctor. to detect the difference, we check

AppendMethodVisibility ( StringBuilder sb, MethodBase mtd ) : void
AppendTypeName ( StringBuilder sb, Type cls, TypeNames options ) : void
IsPropertyAccessor ( MemberInfo member ) : bool
IsPropertyAccessor ( MethodBase method ) : bool
IsPropertyGet ( MethodBase method ) : bool
IsPropertySet ( MethodBase method ) : bool
IsVirtual ( MethodBase method ) : bool

Приватные методы

Метод Описание
GetUnderlyingType ( Type cls ) : Type
PrimitiveName ( Type cls ) : String
SortMemberInfo ( MemberInfo members ) : IList

Описание методов

AbbreviateName() публичный статический Метод

public static AbbreviateName ( String name, String search, String replace ) : String
name String
search String
replace String
Результат String

AppendArrayBrackets() защищенный Метод

protected AppendArrayBrackets ( StringBuilder sb, Type cls ) : void
sb StringBuilder
cls System.Type
Результат void

AppendClassModifiers() защищенный Метод

Get the modifiers for the class (public, final, abstract).
protected AppendClassModifiers ( StringBuilder sb, Type cls ) : void
sb StringBuilder
cls System.Type
Результат void

AppendClassSignature() публичный абстрактный Метод

public abstract AppendClassSignature ( StringBuilder sb, Type c ) : void
sb StringBuilder
c System.Type
Результат void

AppendClassTrailer() публичный абстрактный Метод

public abstract AppendClassTrailer ( StringBuilder sb, Type c ) : void
sb StringBuilder
c System.Type
Результат void

AppendConstructorFooter() публичный абстрактный Метод

public abstract AppendConstructorFooter ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendConstructorHeader() публичный абстрактный Метод

public abstract AppendConstructorHeader ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendConstructorSignature() публичный абстрактный Метод

public abstract AppendConstructorSignature ( StringBuilder sb, ConstructorInfo mi ) : void
sb StringBuilder
mi System.Reflection.ConstructorInfo
Результат void

AppendFieldFooter() публичный абстрактный Метод

public abstract AppendFieldFooter ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendFieldHeader() публичный абстрактный Метод

public abstract AppendFieldHeader ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendFieldModifiers() защищенный Метод

Retrieves the modifiers on the field (final, static).
protected AppendFieldModifiers ( StringBuilder sb, FieldInfo f ) : void
sb StringBuilder
f System.Reflection.FieldInfo
Результат void

AppendFieldSignature() публичный абстрактный Метод

public abstract AppendFieldSignature ( StringBuilder sb, FieldInfo fi ) : void
sb StringBuilder
fi System.Reflection.FieldInfo
Результат void

AppendFieldType() защищенный Метод

Retrieves the type of the field, checking for an array type
protected AppendFieldType ( StringBuilder sb, FieldInfo f, TypeNames options ) : void
sb StringBuilder
f System.Reflection.FieldInfo
options TypeNames
Результат void

AppendFieldVisibility() защищенный Метод

GetVisibility retrieves the visibility of the field (public, etc.).
protected AppendFieldVisibility ( StringBuilder sb, FieldInfo f ) : void
sb StringBuilder
f System.Reflection.FieldInfo
Результат void

AppendMethodFooter() публичный абстрактный Метод

public abstract AppendMethodFooter ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendMethodHeader() публичный абстрактный Метод

public abstract AppendMethodHeader ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendMethodModifiers() защищенный Метод

GetModifiers returns a string representing the modifiers on a method. The method only applies to an actual method, not a constructor. It
protected AppendMethodModifiers ( StringBuilder sb, MethodInfo mi ) : void
sb StringBuilder
mi System.Reflection.MethodInfo
Результат void

AppendMethodReturnType() защищенный Метод

Retrieve the return type of the method. note that we can only do so on a normal method, not on a ctor. to detect the difference, we check
protected AppendMethodReturnType ( StringBuilder sb, MethodInfo mi, TypeNames options ) : void
sb StringBuilder
mi System.Reflection.MethodInfo
options TypeNames
Результат void

AppendMethodSignature() публичный абстрактный Метод

public abstract AppendMethodSignature ( StringBuilder sb, MethodInfo mi ) : void
sb StringBuilder
mi System.Reflection.MethodInfo
Результат void

AppendMethodVisibility() защищенный Метод

protected AppendMethodVisibility ( StringBuilder sb, MethodBase mtd ) : void
sb StringBuilder
mtd System.Reflection.MethodBase
Результат void

AppendPropertyFooter() публичный абстрактный Метод

public abstract AppendPropertyFooter ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendPropertyHeader() публичный абстрактный Метод

public abstract AppendPropertyHeader ( StringBuilder sb ) : void
sb StringBuilder
Результат void

AppendPropertySignature() публичный абстрактный Метод

public abstract AppendPropertySignature ( StringBuilder sb, PropertyInfo pi ) : void
sb StringBuilder
pi System.Reflection.PropertyInfo
Результат void

AppendTypeName() защищенный Метод

protected AppendTypeName ( StringBuilder sb, Type cls, TypeNames options ) : void
sb StringBuilder
cls System.Type
options TypeNames
Результат void

GetClassCode() публичный Метод

public GetClassCode ( Type cls ) : String
cls System.Type
Результат String

IsPropertyAccessor() защищенный статический Метод

protected static IsPropertyAccessor ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
Результат bool

IsPropertyAccessor() защищенный статический Метод

protected static IsPropertyAccessor ( MethodBase method ) : bool
method System.Reflection.MethodBase
Результат bool

IsPropertyGet() защищенный статический Метод

protected static IsPropertyGet ( MethodBase method ) : bool
method System.Reflection.MethodBase
Результат bool

IsPropertySet() защищенный статический Метод

protected static IsPropertySet ( MethodBase method ) : bool
method System.Reflection.MethodBase
Результат bool

IsVirtual() защищенный статический Метод

protected static IsVirtual ( MethodBase method ) : bool
method System.Reflection.MethodBase
Результат bool

Show() публичный статический Метод

public static Show ( FieldInfo field ) : bool
field System.Reflection.FieldInfo
Результат bool

Show() публичный статический Метод

public static Show ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
Результат bool

Show() публичный статический Метод

public static Show ( Type type ) : bool
type System.Type
Результат bool

Описание свойств

allowAbbreviations публичное статическое свойство

public static bool allowAbbreviations
Результат bool

beQuiet публичное статическое свойство

public static bool beQuiet
Результат bool

defaultAbbreviation публичное статическое свойство

public static TypeNames defaultAbbreviation
Результат TypeNames

lineSeparator публичное статическое свойство

public static string lineSeparator
Результат string

showAdvancedness публичное статическое свойство

public static bool showAdvancedness
Результат bool

showFullNames публичное статическое свойство

public static bool showFullNames
Результат bool

showInherited публичное статическое свойство

public static bool showInherited
Результат bool

showModule публичное статическое свойство

public static bool showModule
Результат bool

showPackage публичное статическое свойство

public static bool showPackage
Результат bool

showPrivate публичное статическое свойство

public static bool showPrivate
Результат bool

showProtected публичное статическое свойство

public static bool showProtected
Результат bool

showPublic публичное статическое свойство

public static bool showPublic
Результат bool