|
IKVM11
11
Java SE 11 Virtual Machine for .NET
|
Performs reflection on a module. More...
Public Member Functions | |
| bool | IsResource () |
| Gets a value indicating whether the object is a resource. | |
| IFieldSymbol? | GetField (string name) |
| Returns a field having the specified name. | |
| IFieldSymbol? | GetField (string name, BindingFlags bindingAttr) |
| Returns a field having the specified name and binding attributes. | |
| IFieldSymbol[] | GetFields (BindingFlags bindingFlags) |
| Returns the global fields defined on the module that match the specified binding flags. | |
| IFieldSymbol[] | GetFields () |
| Returns the global fields defined on the module. | |
| IMethodSymbol? | GetMethod (string name) |
| Returns a method having the specified name. | |
| IMethodSymbol? | GetMethod (string name, ITypeSymbol[] types) |
| Returns a method having the specified name and parameter types. | |
| IMethodSymbol? | GetMethod (string name, BindingFlags bindingAttr, CallingConventions callConvention, ITypeSymbol[] types, ParameterModifier[]? modifiers) |
| Returns a method having the specified name, binding information, calling convention, and parameter types and modifiers. | |
| IMethodSymbol[] | GetMethods () |
| Returns the global methods defined on the module. | |
| IMethodSymbol[] | GetMethods (BindingFlags bindingFlags) |
| Returns the global methods defined on the module that match the specified binding flags. | |
| ITypeSymbol? | GetType (string className) |
| Returns the specified type, performing a case-sensitive search. | |
| ITypeSymbol? | GetType (string className, bool ignoreCase) |
| Returns the specified type, searching the module with the specified case sensitivity. | |
| ITypeSymbol? | GetType (string className, bool throwOnError, bool ignoreCase) |
| Returns the specified type, specifying whether to make a case-sensitive search of the module and whether to throw an exception if the type cannot be found. | |
| ITypeSymbol[] | GetTypes () |
| Returns all the types defined within this module. | |
| ITypeSymbol | ResolveType (int metadataToken) |
| Returns the type identified by the specified metadata token. | |
| ITypeSymbol | ResolveType (int metadataToken, ITypeSymbol[]? genericTypeArguments, ITypeSymbol[]? genericMethodArguments) |
| Returns the type identified by the specified metadata token, in the context defined by the specified generic type parameters. | |
| IFieldSymbol? | ResolveField (int metadataToken) |
| Returns the field identified by a metadata token. | |
| IFieldSymbol? | ResolveField (int metadataToken, ITypeSymbol[]? genericTypeArguments, ITypeSymbol[]? genericMethodArguments) |
| Returns the field identified by the specified metadata token, in the context defined by the specified generic type parameters. | |
| IMemberSymbol? | ResolveMember (int metadataToken) |
| Returns the type or member identified by a metadata token. | |
| IMemberSymbol? | ResolveMember (int metadataToken, ITypeSymbol[]? genericTypeArguments, ITypeSymbol[]? genericMethodArguments) |
| Returns the type or member identified by the specified metadata token, in the context defined by the specified generic type parameters. | |
| IMethodBaseSymbol? | ResolveMethod (int metadataToken) |
| Returns the method or constructor identified by the specified metadata token. | |
| IMethodBaseSymbol? | ResolveMethod (int metadataToken, ITypeSymbol[]? genericTypeArguments, ITypeSymbol[]? genericMethodArguments) |
| Returns the method or constructor identified by the specified metadata token, in the context defined by the specified generic type parameters. | |
| byte[] | ResolveSignature (int metadataToken) |
| Returns the signature blob identified by a metadata token. | |
| string | ResolveString (int metadataToken) |
| Returns the string identified by the specified metadata token. | |
Public Member Functions inherited from IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider | |
| ImmutableArray< CustomAttributeSymbol > | GetCustomAttributes () |
| Returns an array of all of the custom attributes defined on this member, excluding named attributes, or an empty array if there are no custom attributes. | |
| ImmutableArray< CustomAttributeSymbol > | GetCustomAttributes (ITypeSymbol attributeType) |
| Returns an array of custom attributes defined on this member, identified by type, or an empty array if there are no custom attributes of that type. | |
| bool | IsDefined (ITypeSymbol attributeType) |
| Indicates whether one or more instance of attributeType is defined on this member. | |
Properties | |
| IAssemblySymbol | Assembly [get] |
| Gets the appropriate for this instance of Module. | |
| string | FullyQualifiedName [get] |
| Gets a string representing the fully qualified name and path to this module. | |
| int | MetadataToken [get] |
| Gets a token that identifies the module in metadata. | |
| Guid | ModuleVersionId [get] |
| Gets a universally unique identifier (UUID) that can be used to distinguish between two versions of a module. | |
| string | Name [get] |
| Gets a string representing the name of the module with the path removed. | |
| string | ScopeName [get] |
| Gets a string representing the name of the module. | |
Properties inherited from IKVM.CoreLib.Symbols.ISymbol | |
| bool | IsMissing [get] |
Returns true if the symbol is missing. | |
Performs reflection on a module.
Definition at line 10 of file IModuleSymbol.cs.
| IFieldSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetField | ( | string | name | ) |
Returns a field having the specified name.
| name |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IFieldSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetField | ( | string | name, |
| BindingFlags | bindingAttr ) |
Returns a field having the specified name and binding attributes.
| name | |
| bindingAttr |
Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IFieldSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetFields | ( | ) |
Returns the global fields defined on the module.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IFieldSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetFields | ( | BindingFlags | bindingFlags | ) |
Returns the global fields defined on the module that match the specified binding flags.
| bindingFlags |
Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMethodSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetMethod | ( | string | name | ) |
Returns a method having the specified name.
| name |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMethodSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetMethod | ( | string | name, |
| BindingFlags | bindingAttr, | ||
| CallingConventions | callConvention, | ||
| ITypeSymbol[] | types, | ||
| ParameterModifier?[] | modifiers ) |
Returns a method having the specified name, binding information, calling convention, and parameter types and modifiers.
| name | |
| bindingAttr | |
| callConvention | |
| types | |
| modifiers |
Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMethodSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetMethod | ( | string | name, |
| ITypeSymbol[] | types ) |
Returns a method having the specified name and parameter types.
| name | |
| types |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMethodSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetMethods | ( | ) |
Returns the global methods defined on the module.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMethodSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetMethods | ( | BindingFlags | bindingFlags | ) |
Returns the global methods defined on the module that match the specified binding flags.
| bindingFlags |
Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| ITypeSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetType | ( | string | className | ) |
Returns the specified type, performing a case-sensitive search.
| className |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| ITypeSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetType | ( | string | className, |
| bool | ignoreCase ) |
Returns the specified type, searching the module with the specified case sensitivity.
| className | |
| ignoreCase |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| ITypeSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetType | ( | string | className, |
| bool | throwOnError, | ||
| bool | ignoreCase ) |
Returns the specified type, specifying whether to make a case-sensitive search of the module and whether to throw an exception if the type cannot be found.
| className | |
| throwOnError | |
| ignoreCase |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| ITypeSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetTypes | ( | ) |
Returns all the types defined within this module.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| bool IKVM.CoreLib.Symbols.IModuleSymbol.IsResource | ( | ) |
Gets a value indicating whether the object is a resource.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IFieldSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveField | ( | int | metadataToken | ) |
Returns the field identified by a metadata token.
| metadataToken |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IFieldSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveField | ( | int | metadataToken, |
| ITypeSymbol?[] | genericTypeArguments, | ||
| ITypeSymbol?[] | genericMethodArguments ) |
Returns the field identified by the specified metadata token, in the context defined by the specified generic type parameters.
| metadataToken | |
| genericTypeArguments | |
| genericMethodArguments |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMemberSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveMember | ( | int | metadataToken | ) |
Returns the type or member identified by a metadata token.
| metadataToken |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMemberSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveMember | ( | int | metadataToken, |
| ITypeSymbol?[] | genericTypeArguments, | ||
| ITypeSymbol?[] | genericMethodArguments ) |
Returns the type or member identified by the specified metadata token, in the context defined by the specified generic type parameters.
| metadataToken | |
| genericTypeArguments | |
| genericMethodArguments |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMethodBaseSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveMethod | ( | int | metadataToken | ) |
Returns the method or constructor identified by the specified metadata token.
| metadataToken |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| IMethodBaseSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveMethod | ( | int | metadataToken, |
| ITypeSymbol?[] | genericTypeArguments, | ||
| ITypeSymbol?[] | genericMethodArguments ) |
Returns the method or constructor identified by the specified metadata token, in the context defined by the specified generic type parameters.
| metadataToken | |
| genericTypeArguments | |
| genericMethodArguments |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| byte[] IKVM.CoreLib.Symbols.IModuleSymbol.ResolveSignature | ( | int | metadataToken | ) |
Returns the signature blob identified by a metadata token.
| metadataToken |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| string IKVM.CoreLib.Symbols.IModuleSymbol.ResolveString | ( | int | metadataToken | ) |
Returns the string identified by the specified metadata token.
| metadataToken |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| ITypeSymbol IKVM.CoreLib.Symbols.IModuleSymbol.ResolveType | ( | int | metadataToken | ) |
Returns the type identified by the specified metadata token.
| metadataToken |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
| ITypeSymbol IKVM.CoreLib.Symbols.IModuleSymbol.ResolveType | ( | int | metadataToken, |
| ITypeSymbol?[] | genericTypeArguments, | ||
| ITypeSymbol?[] | genericMethodArguments ) |
Returns the type identified by the specified metadata token, in the context defined by the specified generic type parameters.
| metadataToken | |
| genericTypeArguments | |
| genericMethodArguments |
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
|
get |
Gets the appropriate for this instance of Module.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
Definition at line 16 of file IModuleSymbol.cs.
|
get |
Gets a string representing the fully qualified name and path to this module.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
Definition at line 21 of file IModuleSymbol.cs.
|
get |
Gets a token that identifies the module in metadata.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
Definition at line 26 of file IModuleSymbol.cs.
|
get |
Gets a universally unique identifier (UUID) that can be used to distinguish between two versions of a module.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
Definition at line 31 of file IModuleSymbol.cs.
|
get |
Gets a string representing the name of the module with the path removed.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
Definition at line 36 of file IModuleSymbol.cs.
|
get |
Gets a string representing the name of the module.
Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.
Definition at line 41 of file IModuleSymbol.cs.