C# Class IKVM.Reflection.Module

Inheritance: ICustomAttributeProvider
Show file Open project: mono/ikvm-fork Class Usage Examples

Public Methods

Method Description
FindTypes ( TypeFilter filter, object filterCriteria ) : Type[]
GetCustomAttributesData ( ) : IList
GetField ( string name ) : IKVM.Reflection.FieldInfo
GetField ( string name, BindingFlags bindingFlags ) : IKVM.Reflection.FieldInfo
GetFields ( ) : IKVM.Reflection.FieldInfo[]
GetFields ( BindingFlags bindingFlags ) : IKVM.Reflection.FieldInfo[]
GetMethod ( string name ) : IKVM.Reflection.MethodInfo
GetMethod ( string name, BindingFlags bindingAttr, IKVM.Reflection.Binder binder, CallingConventions callConv, Type types, IKVM.Reflection.ParameterModifier modifiers ) : IKVM.Reflection.MethodInfo
GetMethod ( string name, Type types ) : IKVM.Reflection.MethodInfo
GetMethods ( ) : IKVM.Reflection.MethodInfo[]
GetMethods ( BindingFlags bindingFlags ) : IKVM.Reflection.MethodInfo[]
GetPEKind ( PortableExecutableKinds &peKind, ImageFileMachine &machine ) : void
GetSignerCertificate ( ) : System.Security.Cryptography.X509Certificates.X509Certificate
GetType ( string className ) : Type
GetType ( string className, bool ignoreCase ) : Type
GetType ( string className, bool throwOnError, bool ignoreCase ) : Type
GetTypes ( ) : Type[]
IsDefined ( Type attributeType, bool inherit ) : bool
IsResource ( ) : bool
ResolveField ( int metadataToken ) : IKVM.Reflection.FieldInfo
ResolveField ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.FieldInfo
ResolveMember ( int metadataToken ) : IKVM.Reflection.MemberInfo
ResolveMember ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.MemberInfo
ResolveMethod ( int metadataToken ) : IKVM.Reflection.MethodBase
ResolveMethod ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.MethodBase
ResolveSignature ( int metadataToken ) : byte[]
ResolveString ( int metadataToken ) : string
ResolveType ( int metadataToken ) : Type
ResolveType ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : Type
__EnumerateCustomAttributeTable ( ) : IEnumerable
__GetCustomAttributes ( Type attributeType, bool inherit ) : IList
__GetDataDirectoryEntry ( int index, int &rva, int &length ) : void
__GetExportedTypes ( ) : Type[]
__GetPlaceholderAssemblyCustomAttributes ( bool multiple, bool security ) : IList
__GetReferencedAssemblies ( ) : IKVM.Reflection.AssemblyName[]
__GetReferencedModules ( ) : string[]
__GetReferencedTypes ( ) : Type[]
__GetSectionInfo ( int rva, string &name, int &characteristics ) : bool
__GetSectionInfo ( int rva, string &name, int &characteristics, int &virtualAddress, int &virtualSize, int &pointerToRawData, int &sizeOfRawData ) : bool
__ReadDataFromRVA ( int rva, byte data, int offset, int length ) : int
__RelativeVirtualAddressToFileOffset ( int rva ) : long
__ResolveOptionalParameterTypes ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments, CustomModifiers &customModifiers ) : Type[]
__ResolveReferencedAssemblies ( Assembly assemblies ) : void
__ResolveStandAloneMethodSig ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.__StandAloneMethodSig
__ResolveTypeSpecCustomModifiers ( int typeSpecToken, Type genericTypeArguments, Type genericMethodArguments ) : CustomModifiers
__TryGetImplMap ( int token, ImplMapFlags &mappingFlags, string &importName, string &importScope ) : bool

Protected Methods

Method Description
GetDllCharacteristicsImpl ( ) : DllCharacteristics
GetFileAlignmentImpl ( ) : int
GetImageBaseImpl ( ) : long
GetStackReserveImpl ( ) : long
Module ( IKVM.Reflection.Universe universe ) : System

Private Methods

Method Description
Dispose ( ) : void
ExportTypes ( int fileToken, IKVM manifestModule ) : void
FindType ( TypeName name ) : Type
FindTypeIgnoreCase ( TypeName lowerCaseName ) : Type
GetBlob ( int blobIndex ) : IKVM.Reflection.Reader.ByteReader
GetDeclarativeSecurity ( int metadataToken ) : IList
GetGuid ( int guidIndex ) : System.Guid
GetModuleType ( ) : Type
GetString ( int index ) : string
GetTables ( ) : Table[]
GetTypesImpl ( List list ) : void
ResolveType ( int metadataToken, IGenericContext context ) : Type
__GetCustomAttributesFor ( int token ) : List
__ResolveOptionalParameterTypes ( int metadataToken ) : Type[]

Method Details

FindTypes() public method

public FindTypes ( TypeFilter filter, object filterCriteria ) : Type[]
filter TypeFilter
filterCriteria object
return Type[]

GetCustomAttributesData() public method

public GetCustomAttributesData ( ) : IList
return IList

GetDllCharacteristicsImpl() protected abstract method

protected abstract GetDllCharacteristicsImpl ( ) : DllCharacteristics
return DllCharacteristics

GetField() public method

public GetField ( string name ) : IKVM.Reflection.FieldInfo
name string
return IKVM.Reflection.FieldInfo

GetField() public method

public GetField ( string name, BindingFlags bindingFlags ) : IKVM.Reflection.FieldInfo
name string
bindingFlags BindingFlags
return IKVM.Reflection.FieldInfo

GetFields() public method

public GetFields ( ) : IKVM.Reflection.FieldInfo[]
return IKVM.Reflection.FieldInfo[]

GetFields() public method

public GetFields ( BindingFlags bindingFlags ) : IKVM.Reflection.FieldInfo[]
bindingFlags BindingFlags
return IKVM.Reflection.FieldInfo[]

GetFileAlignmentImpl() protected abstract method

protected abstract GetFileAlignmentImpl ( ) : int
return int

GetImageBaseImpl() protected abstract method

protected abstract GetImageBaseImpl ( ) : long
return long

GetMethod() public method

public GetMethod ( string name ) : IKVM.Reflection.MethodInfo
name string
return IKVM.Reflection.MethodInfo

GetMethod() public method

public GetMethod ( string name, BindingFlags bindingAttr, IKVM.Reflection.Binder binder, CallingConventions callConv, Type types, IKVM.Reflection.ParameterModifier modifiers ) : IKVM.Reflection.MethodInfo
name string
bindingAttr BindingFlags
binder IKVM.Reflection.Binder
callConv CallingConventions
types Type
modifiers IKVM.Reflection.ParameterModifier
return IKVM.Reflection.MethodInfo

GetMethod() public method

public GetMethod ( string name, Type types ) : IKVM.Reflection.MethodInfo
name string
types Type
return IKVM.Reflection.MethodInfo

GetMethods() public method

public GetMethods ( ) : IKVM.Reflection.MethodInfo[]
return IKVM.Reflection.MethodInfo[]

GetMethods() public method

public GetMethods ( BindingFlags bindingFlags ) : IKVM.Reflection.MethodInfo[]
bindingFlags BindingFlags
return IKVM.Reflection.MethodInfo[]

GetPEKind() public method

public GetPEKind ( PortableExecutableKinds &peKind, ImageFileMachine &machine ) : void
peKind PortableExecutableKinds
machine ImageFileMachine
return void

GetSignerCertificate() public method

public GetSignerCertificate ( ) : System.Security.Cryptography.X509Certificates.X509Certificate
return System.Security.Cryptography.X509Certificates.X509Certificate

GetStackReserveImpl() protected abstract method

protected abstract GetStackReserveImpl ( ) : long
return long

GetType() public method

public GetType ( string className ) : Type
className string
return Type

GetType() public method

public GetType ( string className, bool ignoreCase ) : Type
className string
ignoreCase bool
return Type

GetType() public method

public GetType ( string className, bool throwOnError, bool ignoreCase ) : Type
className string
throwOnError bool
ignoreCase bool
return Type

GetTypes() public method

public GetTypes ( ) : Type[]
return Type[]

IsDefined() public method

public IsDefined ( Type attributeType, bool inherit ) : bool
attributeType Type
inherit bool
return bool

IsResource() public method

public IsResource ( ) : bool
return bool

Module() protected method

protected Module ( IKVM.Reflection.Universe universe ) : System
universe IKVM.Reflection.Universe
return System

ResolveField() public method

public ResolveField ( int metadataToken ) : IKVM.Reflection.FieldInfo
metadataToken int
return IKVM.Reflection.FieldInfo

ResolveField() public abstract method

public abstract ResolveField ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.FieldInfo
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return IKVM.Reflection.FieldInfo

ResolveMember() public method

public ResolveMember ( int metadataToken ) : IKVM.Reflection.MemberInfo
metadataToken int
return IKVM.Reflection.MemberInfo

ResolveMember() public abstract method

public abstract ResolveMember ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.MemberInfo
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return IKVM.Reflection.MemberInfo

ResolveMethod() public method

public ResolveMethod ( int metadataToken ) : IKVM.Reflection.MethodBase
metadataToken int
return IKVM.Reflection.MethodBase

ResolveMethod() public abstract method

public abstract ResolveMethod ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.MethodBase
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return IKVM.Reflection.MethodBase

ResolveSignature() public method

public ResolveSignature ( int metadataToken ) : byte[]
metadataToken int
return byte[]

ResolveString() public abstract method

public abstract ResolveString ( int metadataToken ) : string
metadataToken int
return string

ResolveType() public method

public ResolveType ( int metadataToken ) : Type
metadataToken int
return Type

ResolveType() public method

public ResolveType ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : Type
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return Type

__EnumerateCustomAttributeTable() public method

public __EnumerateCustomAttributeTable ( ) : IEnumerable
return IEnumerable

__GetCustomAttributes() public method

public __GetCustomAttributes ( Type attributeType, bool inherit ) : IList
attributeType Type
inherit bool
return IList

__GetDataDirectoryEntry() public method

public __GetDataDirectoryEntry ( int index, int &rva, int &length ) : void
index int
rva int
length int
return void

__GetExportedTypes() public abstract method

public abstract __GetExportedTypes ( ) : Type[]
return Type[]

__GetPlaceholderAssemblyCustomAttributes() public method

public __GetPlaceholderAssemblyCustomAttributes ( bool multiple, bool security ) : IList
multiple bool
security bool
return IList

__GetReferencedAssemblies() public abstract method

public abstract __GetReferencedAssemblies ( ) : IKVM.Reflection.AssemblyName[]
return IKVM.Reflection.AssemblyName[]

__GetReferencedModules() public abstract method

public abstract __GetReferencedModules ( ) : string[]
return string[]

__GetReferencedTypes() public abstract method

public abstract __GetReferencedTypes ( ) : Type[]
return Type[]

__GetSectionInfo() public method

public __GetSectionInfo ( int rva, string &name, int &characteristics ) : bool
rva int
name string
characteristics int
return bool

__GetSectionInfo() public method

public __GetSectionInfo ( int rva, string &name, int &characteristics, int &virtualAddress, int &virtualSize, int &pointerToRawData, int &sizeOfRawData ) : bool
rva int
name string
characteristics int
virtualAddress int
virtualSize int
pointerToRawData int
sizeOfRawData int
return bool

__ReadDataFromRVA() public method

public __ReadDataFromRVA ( int rva, byte data, int offset, int length ) : int
rva int
data byte
offset int
length int
return int

__RelativeVirtualAddressToFileOffset() public method

public __RelativeVirtualAddressToFileOffset ( int rva ) : long
rva int
return long

__ResolveOptionalParameterTypes() public abstract method

public abstract __ResolveOptionalParameterTypes ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments, CustomModifiers &customModifiers ) : Type[]
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
customModifiers CustomModifiers
return Type[]

__ResolveReferencedAssemblies() public method

public __ResolveReferencedAssemblies ( Assembly assemblies ) : void
assemblies Assembly
return void

__ResolveStandAloneMethodSig() public method

public __ResolveStandAloneMethodSig ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : IKVM.Reflection.__StandAloneMethodSig
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return IKVM.Reflection.__StandAloneMethodSig

__ResolveTypeSpecCustomModifiers() public method

public __ResolveTypeSpecCustomModifiers ( int typeSpecToken, Type genericTypeArguments, Type genericMethodArguments ) : CustomModifiers
typeSpecToken int
genericTypeArguments Type
genericMethodArguments Type
return CustomModifiers

__TryGetImplMap() public method

public __TryGetImplMap ( int token, ImplMapFlags &mappingFlags, string &importName, string &importScope ) : bool
token int
mappingFlags ImplMapFlags
importName string
importScope string
return bool