C# Class DefaultNamespace.BaseGenerator

Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Méthodes publiques

Свойство Type Description
allowAbbreviations bool
beQuiet bool
defaultAbbreviation TypeNames
lineSeparator string
showAdvancedness bool
showFullNames bool
showInherited bool
showModule bool
showPackage bool
showPrivate bool
showProtected bool
showPublic bool

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
GetUnderlyingType ( Type cls ) : Type
PrimitiveName ( Type cls ) : String
SortMemberInfo ( MemberInfo members ) : IList

Method Details

AbbreviateName() public static méthode

public static AbbreviateName ( String name, String search, String replace ) : String
name String
search String
replace String
Résultat String

AppendArrayBrackets() protected méthode

protected AppendArrayBrackets ( StringBuilder sb, Type cls ) : void
sb StringBuilder
cls System.Type
Résultat void

AppendClassModifiers() protected méthode

Get the modifiers for the class (public, final, abstract).
protected AppendClassModifiers ( StringBuilder sb, Type cls ) : void
sb StringBuilder
cls System.Type
Résultat void

AppendClassSignature() public abstract méthode

public abstract AppendClassSignature ( StringBuilder sb, Type c ) : void
sb StringBuilder
c System.Type
Résultat void

AppendClassTrailer() public abstract méthode

public abstract AppendClassTrailer ( StringBuilder sb, Type c ) : void
sb StringBuilder
c System.Type
Résultat void

AppendConstructorFooter() public abstract méthode

public abstract AppendConstructorFooter ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendConstructorHeader() public abstract méthode

public abstract AppendConstructorHeader ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendConstructorSignature() public abstract méthode

public abstract AppendConstructorSignature ( StringBuilder sb, ConstructorInfo mi ) : void
sb StringBuilder
mi System.Reflection.ConstructorInfo
Résultat void

AppendFieldFooter() public abstract méthode

public abstract AppendFieldFooter ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendFieldHeader() public abstract méthode

public abstract AppendFieldHeader ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendFieldModifiers() protected méthode

Retrieves the modifiers on the field (final, static).
protected AppendFieldModifiers ( StringBuilder sb, FieldInfo f ) : void
sb StringBuilder
f System.Reflection.FieldInfo
Résultat void

AppendFieldSignature() public abstract méthode

public abstract AppendFieldSignature ( StringBuilder sb, FieldInfo fi ) : void
sb StringBuilder
fi System.Reflection.FieldInfo
Résultat void

AppendFieldType() protected méthode

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
Résultat void

AppendFieldVisibility() protected méthode

GetVisibility retrieves the visibility of the field (public, etc.).
protected AppendFieldVisibility ( StringBuilder sb, FieldInfo f ) : void
sb StringBuilder
f System.Reflection.FieldInfo
Résultat void

AppendMethodFooter() public abstract méthode

public abstract AppendMethodFooter ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendMethodHeader() public abstract méthode

public abstract AppendMethodHeader ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendMethodModifiers() protected méthode

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
Résultat void

AppendMethodReturnType() protected méthode

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
Résultat void

AppendMethodSignature() public abstract méthode

public abstract AppendMethodSignature ( StringBuilder sb, MethodInfo mi ) : void
sb StringBuilder
mi System.Reflection.MethodInfo
Résultat void

AppendMethodVisibility() protected méthode

protected AppendMethodVisibility ( StringBuilder sb, MethodBase mtd ) : void
sb StringBuilder
mtd System.Reflection.MethodBase
Résultat void

AppendPropertyFooter() public abstract méthode

public abstract AppendPropertyFooter ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendPropertyHeader() public abstract méthode

public abstract AppendPropertyHeader ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

AppendPropertySignature() public abstract méthode

public abstract AppendPropertySignature ( StringBuilder sb, PropertyInfo pi ) : void
sb StringBuilder
pi System.Reflection.PropertyInfo
Résultat void

AppendTypeName() protected méthode

protected AppendTypeName ( StringBuilder sb, Type cls, TypeNames options ) : void
sb StringBuilder
cls System.Type
options TypeNames
Résultat void

GetClassCode() public méthode

public GetClassCode ( Type cls ) : String
cls System.Type
Résultat String

IsPropertyAccessor() protected static méthode

protected static IsPropertyAccessor ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
Résultat bool

IsPropertyAccessor() protected static méthode

protected static IsPropertyAccessor ( MethodBase method ) : bool
method System.Reflection.MethodBase
Résultat bool

IsPropertyGet() protected static méthode

protected static IsPropertyGet ( MethodBase method ) : bool
method System.Reflection.MethodBase
Résultat bool

IsPropertySet() protected static méthode

protected static IsPropertySet ( MethodBase method ) : bool
method System.Reflection.MethodBase
Résultat bool

IsVirtual() protected static méthode

protected static IsVirtual ( MethodBase method ) : bool
method System.Reflection.MethodBase
Résultat bool

Show() public static méthode

public static Show ( FieldInfo field ) : bool
field System.Reflection.FieldInfo
Résultat bool

Show() public static méthode

public static Show ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
Résultat bool

Show() public static méthode

public static Show ( Type type ) : bool
type System.Type
Résultat bool

Property Details

allowAbbreviations public_oe static_oe property

public static bool allowAbbreviations
Résultat bool

beQuiet public_oe static_oe property

public static bool beQuiet
Résultat bool

defaultAbbreviation public_oe static_oe property

public static TypeNames defaultAbbreviation
Résultat TypeNames

lineSeparator public_oe static_oe property

public static string lineSeparator
Résultat string

showAdvancedness public_oe static_oe property

public static bool showAdvancedness
Résultat bool

showFullNames public_oe static_oe property

public static bool showFullNames
Résultat bool

showInherited public_oe static_oe property

public static bool showInherited
Résultat bool

showModule public_oe static_oe property

public static bool showModule
Résultat bool

showPackage public_oe static_oe property

public static bool showPackage
Résultat bool

showPrivate public_oe static_oe property

public static bool showPrivate
Résultat bool

showProtected public_oe static_oe property

public static bool showProtected
Résultat bool

showPublic public_oe static_oe property

public static bool showPublic
Résultat bool