|
IKVM11
11
Java SE 11 Virtual Machine for .NET
|
Implementation of IModuleSymbol derived from System.Reflection. More...
Public Member Functions | |||||||||||
| ReflectionModuleSymbol (ReflectionSymbolContext context, Module underlyingModule) | |||||||||||
| Initializes a new instance. | |||||||||||
| 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.
| |||||||||||
| bool | IsResource () | ||||||||||
Gets a value indicating whether the object is a resource.
| |||||||||||
| 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, 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.
| |||||||||||
| IMethodBaseSymbol? | ResolveMethod (int metadataToken) | ||||||||||
Returns the method or constructor identified by the specified metadata token.
| |||||||||||
| 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.
| |||||||||||
| 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.
| |||||||||||
| 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.
| |||||||||||
Public Member Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionSymbol | |||||||||||
| ReflectionSymbol (ReflectionSymbolContext context) | |||||||||||
| Initializes a new instance. | |||||||||||
Public Member Functions inherited from IKVM.CoreLib.Symbols.IModuleSymbol | |||||||||||
Public Member Functions inherited from IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider | |||||||||||
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.Reflection.ReflectionSymbol | |
| ReflectionSymbolContext | Context [get] |
| Gets the associated ReflectionSymbolContext. | |
| virtual bool | IsMissing [get] |
Returns true if the symbol is missing. | |
Properties inherited from IKVM.CoreLib.Symbols.ISymbol | |
Properties inherited from IKVM.CoreLib.Symbols.IModuleSymbol | |
Additional Inherited Members | |
Protected Member Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionSymbol | |
| virtual ReflectionMemberSymbol | ResolveMemberSymbol (MemberInfo member) |
| Resolves the symbol for the specified type. | |
Package Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionSymbol | |
Implementation of IModuleSymbol derived from System.Reflection.
Definition at line 15 of file ReflectionModuleSymbol.cs.
| IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.ReflectionModuleSymbol | ( | ReflectionSymbolContext | context, |
| Module | underlyingModule ) |
Initializes a new instance.
| context | |
| underlyingModule |
| ArgumentNullException |
Definition at line 44 of file ReflectionModuleSymbol.cs.
| ImmutableArray< CustomAttributeSymbol > IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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.
Implements IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider.
Definition at line 334 of file ReflectionModuleSymbol.cs.
| ImmutableArray< CustomAttributeSymbol > IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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.
| attributeType |
Implements IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider.
Definition at line 340 of file ReflectionModuleSymbol.cs.
| IFieldSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetField | ( | string | name | ) |
Returns a field having the specified name.
| name |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 182 of file ReflectionModuleSymbol.cs.
| IFieldSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetField | ( | string | name, |
| BindingFlags | bindingAttr ) |
Returns a field having the specified name and binding attributes.
| name | |
| bindingAttr |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 188 of file ReflectionModuleSymbol.cs.
| IFieldSymbol[] IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetFields | ( | ) |
Returns the global fields defined on the module.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 200 of file ReflectionModuleSymbol.cs.
| IFieldSymbol[] IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetFields | ( | BindingFlags | bindingFlags | ) |
Returns the global fields defined on the module that match the specified binding flags.
| bindingFlags |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 194 of file ReflectionModuleSymbol.cs.
| IMethodSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetMethod | ( | string | name | ) |
Returns a method having the specified name.
| name |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 206 of file ReflectionModuleSymbol.cs.
| IMethodSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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 |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 218 of file ReflectionModuleSymbol.cs.
| IMethodSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetMethod | ( | string | name, |
| ITypeSymbol[] | types ) |
Returns a method having the specified name and parameter types.
| name | |
| types |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 212 of file ReflectionModuleSymbol.cs.
| IMethodSymbol[] IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetMethods | ( | ) |
Returns the global methods defined on the module.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 224 of file ReflectionModuleSymbol.cs.
| IMethodSymbol[] IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetMethods | ( | BindingFlags | bindingFlags | ) |
Returns the global methods defined on the module that match the specified binding flags.
| bindingFlags |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 230 of file ReflectionModuleSymbol.cs.
| ITypeSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetType | ( | string | className | ) |
Returns the specified type, performing a case-sensitive search.
| className |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 236 of file ReflectionModuleSymbol.cs.
| ITypeSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetType | ( | string | className, |
| bool | ignoreCase ) |
Returns the specified type, searching the module with the specified case sensitivity.
| className | |
| ignoreCase |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 242 of file ReflectionModuleSymbol.cs.
| ITypeSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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 |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 248 of file ReflectionModuleSymbol.cs.
| ITypeSymbol[] IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.GetTypes | ( | ) |
Returns all the types defined within this module.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 254 of file ReflectionModuleSymbol.cs.
| bool IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.IsDefined | ( | ITypeSymbol | attributeType | ) |
Indicates whether one or more instance of attributeType is defined on this member.
| attributeType |
Implements IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider.
Definition at line 347 of file ReflectionModuleSymbol.cs.
| bool IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.IsResource | ( | ) |
Gets a value indicating whether the object is a resource.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 260 of file ReflectionModuleSymbol.cs.
| IFieldSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.ResolveField | ( | int | metadataToken | ) |
Returns the field identified by a metadata token.
| metadataToken |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 266 of file ReflectionModuleSymbol.cs.
| IFieldSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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 |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 272 of file ReflectionModuleSymbol.cs.
| IMemberSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.ResolveMember | ( | int | metadataToken | ) |
Returns the type or member identified by a metadata token.
| metadataToken |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 280 of file ReflectionModuleSymbol.cs.
| IMemberSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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 |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 286 of file ReflectionModuleSymbol.cs.
| IMethodBaseSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.ResolveMethod | ( | int | metadataToken | ) |
Returns the method or constructor identified by the specified metadata token.
| metadataToken |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 302 of file ReflectionModuleSymbol.cs.
| IMethodBaseSymbol? IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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 |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 294 of file ReflectionModuleSymbol.cs.
| byte[] IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.ResolveSignature | ( | int | metadataToken | ) |
Returns the signature blob identified by a metadata token.
| metadataToken |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 308 of file ReflectionModuleSymbol.cs.
| string IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.ResolveString | ( | int | metadataToken | ) |
Returns the string identified by the specified metadata token.
| metadataToken |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 314 of file ReflectionModuleSymbol.cs.
| ITypeSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.ResolveType | ( | int | metadataToken | ) |
Returns the type identified by the specified metadata token.
| metadataToken |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 320 of file ReflectionModuleSymbol.cs.
| ITypeSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.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 |
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 326 of file ReflectionModuleSymbol.cs.
|
get |
Gets the appropriate for this instance of Module.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 164 of file ReflectionModuleSymbol.cs.
|
get |
Gets a string representing the fully qualified name and path to this module.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 167 of file ReflectionModuleSymbol.cs.
|
get |
Gets a token that identifies the module in metadata.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 170 of file ReflectionModuleSymbol.cs.
|
get |
Gets a universally unique identifier (UUID) that can be used to distinguish between two versions of a module.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 173 of file ReflectionModuleSymbol.cs.
|
get |
Gets a string representing the name of the module with the path removed.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 176 of file ReflectionModuleSymbol.cs.
|
get |
Gets a string representing the name of the module.
Implements IKVM.CoreLib.Symbols.IModuleSymbol.
Definition at line 179 of file ReflectionModuleSymbol.cs.