C# Class PublicApiGenerator.ApiGenerator

Datei anzeigen Open project: Particular/NServiceBus

Public Methods

Method Description
GeneratePublicApi ( Assembly assemby, Type includeTypes = null, bool shouldIncludeAssemblyAttributes = true ) : string

Private Methods

Method Description
AddCtorToTypeDeclaration ( CodeTypeDeclaration typeDeclaration, Mono.Cecil.MethodDefinition member ) : void
AddFieldToTypeDeclaration ( CodeTypeDeclaration typeDeclaration, FieldDefinition memberInfo ) : void
AddMemberToTypeDeclaration ( CodeTypeDeclaration typeDeclaration, IMemberDefinition memberInfo ) : void
AddMethodToTypeDeclaration ( CodeTypeDeclaration typeDeclaration, Mono.Cecil.MethodDefinition member ) : void
AddPropertyToTypeDeclaration ( CodeTypeDeclaration typeDeclaration, Mono.Cecil.PropertyDefinition member ) : void
ConvertAttrbuteToCode ( CodeTypeReference>.Func codeTypeModifier, CustomAttribute customAttribute ) : object
CreateCodeTypeReference ( TypeReference type ) : CodeTypeReference
CreateCustomAttributes ( Mono.Cecil.ICustomAttributeProvider type ) : CodeAttributeDeclarationCollection
CreateDelegateDeclaration ( Mono.Cecil.TypeDefinition publicType ) : CodeTypeDeclaration
CreateGenericArguments ( TypeReference type ) : System.CodeDom.CodeTypeReference[]
CreateInitialiserExpression ( CustomAttributeArgument attributeArgument ) : System.CodeDom.CodeExpression
CreatePublicApiForAssembly ( AssemblyDefinition assembly, bool>.Func shouldIncludeType, bool shouldIncludeAssemblyAttributes ) : string
CreateTypeDeclaration ( Mono.Cecil.TypeDefinition publicType ) : CodeTypeDeclaration
FormatParameterConstant ( IConstantProvider parameter ) : object
GenerateCodeAttributeDeclaration ( CodeTypeReference>.Func codeTypeModifier, CustomAttribute customAttribute ) : CodeAttributeDeclaration
GenerateEvent ( Mono.Cecil.EventDefinition eventDefinition ) : CodeTypeMember
GetBaseTypes ( Mono.Cecil.TypeDefinition type ) : IEnumerable
GetMethodAttributes ( Mono.Cecil.MethodDefinition method ) : MemberAttributes
GetPropertyAttributes ( MemberAttributes getterAttributes, MemberAttributes setterAttributes ) : MemberAttributes
GetTypeName ( TypeReference type ) : string
HasVisiblePropertyMethod ( MemberAttributes attributes ) : bool
IsAsyncMethod ( Mono.Cecil.ICustomAttributeProvider method ) : bool
IsCompilerGenerated ( IMemberDefinition m ) : bool
IsDelegate ( Mono.Cecil.TypeDefinition publicType ) : bool
IsDotNetTypeMember ( IMemberDefinition m ) : bool
IsExtensionMethod ( Mono.Cecil.ICustomAttributeProvider method ) : bool
IsHidingMethod ( Mono.Cecil.MethodDefinition method ) : bool
MakeAsync ( CodeTypeReference typeReference ) : CodeTypeReference
MakeReadonly ( CodeTypeReference typeReference ) : CodeTypeReference
ModifyCodeTypeReference ( CodeTypeReference typeReference, string modifier ) : CodeTypeReference
NormaliseGeneratedCode ( StringWriter writer ) : string
NormaliseLineEndings ( string value ) : string
PopulateCustomAttributes ( Mono.Cecil.ICustomAttributeProvider type, CodeAttributeDeclarationCollection attributes ) : void
PopulateCustomAttributes ( Mono.Cecil.ICustomAttributeProvider type, CodeAttributeDeclarationCollection attributes, CodeTypeReference>.Func codeTypeModifier ) : void
PopulateGenericParameters ( IGenericParameterProvider publicType, CodeTypeParameterCollection parameters ) : void
PopulateMethodParameters ( IMethodSignature member, CodeParameterDeclarationExpressionCollection parameters, bool isExtension = false ) : void
ShouldIncludeAttribute ( CustomAttribute attribute ) : bool
ShouldIncludeMember ( IMemberDefinition m ) : bool
ShouldIncludeType ( Mono.Cecil.TypeDefinition t ) : bool
ShouldOutputBaseType ( Mono.Cecil.TypeDefinition publicType ) : bool

Method Details

GeneratePublicApi() public static method

public static GeneratePublicApi ( Assembly assemby, Type includeTypes = null, bool shouldIncludeAssemblyAttributes = true ) : string
assemby System.Reflection.Assembly
includeTypes System.Type
shouldIncludeAssemblyAttributes bool
return string