C# Class Mono.CSharp.MetadataImporter

Afficher le fichier Open project: praeclarum/runcs Class Usage Examples

Méthodes publiques

Свойство Type Description
CompilerServicesNamespace string

Protected Properties

Свойство Type Description
assembly_2_definition IAssemblyDefinition>.Dictionary
compiled_types TypeSpec>.Dictionary
import_cache TypeSpec>.Dictionary

Méthodes publiques

Méthode Description
AddCompiledType ( TypeBuilder builder, System.TypeSpec spec ) : void
CreateEvent ( EventInfo ei, System.TypeSpec declaringType, MethodSpec add, MethodSpec remove ) : EventSpec
CreateField ( FieldInfo fi, System.TypeSpec declaringType ) : FieldSpec
CreateMethod ( MethodBase mb, System.TypeSpec declaringType ) : MethodSpec
CreateNestedType ( Type type, System.TypeSpec declaringType ) : System.TypeSpec
CreateProperty ( PropertyInfo pi, System.TypeSpec declaringType, MethodSpec get, MethodSpec set ) : PropertySpec
CreateType ( Type type ) : System.TypeSpec
GetAssemblyDefinition ( Assembly assembly ) : IAssemblyDefinition
GetCustomAttributeTypeName ( CustomAttributeData cad, string &typeNamespace, string &typeName ) : void
HasAttribute ( IList attributesData, string attrName, string attrNamespace ) : bool
ImportType ( Type type ) : System.TypeSpec
ImportTypeBase ( Type type ) : void

Méthodes protégées

Méthode Description
DetermineKindFromBaseType ( Type baseType ) : MemberKind
HasVolatileModifier ( Type modifiers ) : bool
ImportTypes ( Type types, Namespace targetNamespace, bool hasExtensionTypes ) : void
MetadataImporter ( ModuleContainer module ) : IKVM.Reflection

Private Methods

Méthode Description
CreateGenericArguments ( int first, Type tparams, DynamicTypeReader dtype ) : System.TypeSpec[]
CreateGenericParameters ( Type type, System.TypeSpec declaringType ) : Mono.CSharp.TypeParameterSpec[]
CreateGenericParameters ( int first, Type tparams ) : Mono.CSharp.TypeParameterSpec[]
CreateParameters ( System.TypeSpec parent, ParameterInfo pi, MethodBase method ) : AParametersCollection
CreateType ( Type type, DynamicTypeReader dtype, bool canImportBaseType ) : System.TypeSpec
CreateType ( Type type, System.TypeSpec declaringType, DynamicTypeReader dtype, bool canImportBaseType ) : System.TypeSpec
CreateTypeParameter ( Type type, System.TypeSpec declaringType ) : Mono.CSharp.TypeParameterSpec
ImportParameterConstant ( object value ) : Constant
ImportType ( Type type, DynamicTypeReader dtype ) : System.TypeSpec
ImportTypeBase ( System.TypeSpec spec, Type type ) : void
ImportTypeParameterTypeConstraints ( Mono.CSharp.TypeParameterSpec spec, Type type ) : void
IsMissingType ( Type type ) : bool
ReadDecimalConstant ( IList attrs ) : Constant
ReadMethodModifiers ( MethodBase mb, System.TypeSpec declaringType ) : Mono.CSharp.Modifiers

Method Details

AddCompiledType() public abstract méthode

public abstract AddCompiledType ( TypeBuilder builder, System.TypeSpec spec ) : void
builder TypeBuilder
spec System.TypeSpec
Résultat void

CreateEvent() public méthode

public CreateEvent ( EventInfo ei, System.TypeSpec declaringType, MethodSpec add, MethodSpec remove ) : EventSpec
ei EventInfo
declaringType System.TypeSpec
add MethodSpec
remove MethodSpec
Résultat EventSpec

CreateField() public méthode

public CreateField ( FieldInfo fi, System.TypeSpec declaringType ) : FieldSpec
fi FieldInfo
declaringType System.TypeSpec
Résultat FieldSpec

CreateMethod() public méthode

public CreateMethod ( MethodBase mb, System.TypeSpec declaringType ) : MethodSpec
mb MethodBase
declaringType System.TypeSpec
Résultat MethodSpec

CreateNestedType() public méthode

public CreateNestedType ( Type type, System.TypeSpec declaringType ) : System.TypeSpec
type IKVM.Reflection.Type
declaringType System.TypeSpec
Résultat System.TypeSpec

CreateProperty() public méthode

public CreateProperty ( PropertyInfo pi, System.TypeSpec declaringType, MethodSpec get, MethodSpec set ) : PropertySpec
pi PropertyInfo
declaringType System.TypeSpec
get MethodSpec
set MethodSpec
Résultat PropertySpec

CreateType() public méthode

public CreateType ( Type type ) : System.TypeSpec
type IKVM.Reflection.Type
Résultat System.TypeSpec

DetermineKindFromBaseType() protected abstract méthode

protected abstract DetermineKindFromBaseType ( Type baseType ) : MemberKind
baseType IKVM.Reflection.Type
Résultat MemberKind

GetAssemblyDefinition() public méthode

public GetAssemblyDefinition ( Assembly assembly ) : IAssemblyDefinition
assembly Assembly
Résultat IAssemblyDefinition

GetCustomAttributeTypeName() public abstract méthode

public abstract GetCustomAttributeTypeName ( CustomAttributeData cad, string &typeNamespace, string &typeName ) : void
cad CustomAttributeData
typeNamespace string
typeName string
Résultat void

HasAttribute() public méthode

public HasAttribute ( IList attributesData, string attrName, string attrNamespace ) : bool
attributesData IList
attrName string
attrNamespace string
Résultat bool

HasVolatileModifier() protected abstract méthode

protected abstract HasVolatileModifier ( Type modifiers ) : bool
modifiers IKVM.Reflection.Type
Résultat bool

ImportType() public méthode

public ImportType ( Type type ) : System.TypeSpec
type IKVM.Reflection.Type
Résultat System.TypeSpec

ImportTypeBase() public méthode

public ImportTypeBase ( Type type ) : void
type IKVM.Reflection.Type
Résultat void

ImportTypes() protected méthode

protected ImportTypes ( Type types, Namespace targetNamespace, bool hasExtensionTypes ) : void
types IKVM.Reflection.Type
targetNamespace Namespace
hasExtensionTypes bool
Résultat void

MetadataImporter() protected méthode

protected MetadataImporter ( ModuleContainer module ) : IKVM.Reflection
module ModuleContainer
Résultat IKVM.Reflection

Property Details

CompilerServicesNamespace public_oe static_oe property

public static string CompilerServicesNamespace
Résultat string

assembly_2_definition protected_oe property

protected Dictionary assembly_2_definition
Résultat IAssemblyDefinition>.Dictionary

compiled_types protected_oe property

protected Dictionary compiled_types
Résultat TypeSpec>.Dictionary

import_cache protected_oe property

protected Dictionary import_cache
Résultat TypeSpec>.Dictionary