IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.CoreLib.Symbols.IModuleSymbol Interface Reference

Performs reflection on a module. More...

Inheritance diagram for IKVM.CoreLib.Symbols.IModuleSymbol:
IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol

Public Member Functions

bool IsResource ()
 Gets a value indicating whether the object is a resource.
 
IFieldSymbolGetField (string name)
 Returns a field having the specified name.
 
IFieldSymbolGetField (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.
 
IMethodSymbolGetMethod (string name)
 Returns a method having the specified name.
 
IMethodSymbolGetMethod (string name, ITypeSymbol[] types)
 Returns a method having the specified name and parameter types.
 
IMethodSymbolGetMethod (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.
 
ITypeSymbolGetType (string className)
 Returns the specified type, performing a case-sensitive search.
 
ITypeSymbolGetType (string className, bool ignoreCase)
 Returns the specified type, searching the module with the specified case sensitivity.
 
ITypeSymbolGetType (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.
 
IFieldSymbolResolveField (int metadataToken)
 Returns the field identified by a metadata token.
 
IFieldSymbolResolveField (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.
 
IMemberSymbolResolveMember (int metadataToken)
 Returns the type or member identified by a metadata token.
 
IMemberSymbolResolveMember (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.
 
IMethodBaseSymbolResolveMethod (int metadataToken)
 Returns the method or constructor identified by the specified metadata token.
 
IMethodBaseSymbolResolveMethod (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< CustomAttributeSymbolGetCustomAttributes ()
 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< CustomAttributeSymbolGetCustomAttributes (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.
 

Detailed Description

Performs reflection on a module.

Definition at line 10 of file IModuleSymbol.cs.

Member Function Documentation

◆ GetField() [1/2]

IFieldSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetField ( string name)

Returns a field having the specified name.

Parameters
name
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetField() [2/2]

IFieldSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetField ( string name,
BindingFlags bindingAttr )

Returns a field having the specified name and binding attributes.

Parameters
name
bindingAttr
Returns

Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetFields() [1/2]

IFieldSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetFields ( )

Returns the global fields defined on the module.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetFields() [2/2]

IFieldSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetFields ( BindingFlags bindingFlags)

Returns the global fields defined on the module that match the specified binding flags.

Parameters
bindingFlags
Returns

Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetMethod() [1/3]

IMethodSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetMethod ( string name)

Returns a method having the specified name.

Parameters
name
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetMethod() [2/3]

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.

Parameters
name
bindingAttr
callConvention
types
modifiers
Returns

Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetMethod() [3/3]

IMethodSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetMethod ( string name,
ITypeSymbol[] types )

Returns a method having the specified name and parameter types.

Parameters
name
types
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetMethods() [1/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetMethods ( )

Returns the global methods defined on the module.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetMethods() [2/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetMethods ( BindingFlags bindingFlags)

Returns the global methods defined on the module that match the specified binding flags.

Parameters
bindingFlags
Returns

Implemented in IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetType() [1/3]

ITypeSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetType ( string className)

Returns the specified type, performing a case-sensitive search.

Parameters
className
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetType() [2/3]

ITypeSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.GetType ( string className,
bool ignoreCase )

Returns the specified type, searching the module with the specified case sensitivity.

Parameters
className
ignoreCase
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetType() [3/3]

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.

Parameters
className
throwOnError
ignoreCase
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ GetTypes()

ITypeSymbol[] IKVM.CoreLib.Symbols.IModuleSymbol.GetTypes ( )

Returns all the types defined within this module.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ IsResource()

bool IKVM.CoreLib.Symbols.IModuleSymbol.IsResource ( )

Gets a value indicating whether the object is a resource.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveField() [1/2]

IFieldSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveField ( int metadataToken)

Returns the field identified by a metadata token.

Parameters
metadataToken
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveField() [2/2]

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.

Parameters
metadataToken
genericTypeArguments
genericMethodArguments
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveMember() [1/2]

IMemberSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveMember ( int metadataToken)

Returns the type or member identified by a metadata token.

Parameters
metadataToken
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveMember() [2/2]

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.

Parameters
metadataToken
genericTypeArguments
genericMethodArguments
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveMethod() [1/2]

IMethodBaseSymbol? IKVM.CoreLib.Symbols.IModuleSymbol.ResolveMethod ( int metadataToken)

Returns the method or constructor identified by the specified metadata token.

Parameters
metadataToken
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveMethod() [2/2]

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.

Parameters
metadataToken
genericTypeArguments
genericMethodArguments
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveSignature()

byte[] IKVM.CoreLib.Symbols.IModuleSymbol.ResolveSignature ( int metadataToken)

Returns the signature blob identified by a metadata token.

Parameters
metadataToken
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveString()

string IKVM.CoreLib.Symbols.IModuleSymbol.ResolveString ( int metadataToken)

Returns the string identified by the specified metadata token.

Parameters
metadataToken
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveType() [1/2]

ITypeSymbol IKVM.CoreLib.Symbols.IModuleSymbol.ResolveType ( int metadataToken)

Returns the type identified by the specified metadata token.

Parameters
metadataToken
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

◆ ResolveType() [2/2]

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.

Parameters
metadataToken
genericTypeArguments
genericMethodArguments
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionModuleSymbol.

Property Documentation

◆ Assembly

IAssemblySymbol IKVM.CoreLib.Symbols.IModuleSymbol.Assembly
get

◆ FullyQualifiedName

string IKVM.CoreLib.Symbols.IModuleSymbol.FullyQualifiedName
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.

21{ get; }

◆ MetadataToken

int IKVM.CoreLib.Symbols.IModuleSymbol.MetadataToken
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.

26{ get; }

◆ ModuleVersionId

Guid IKVM.CoreLib.Symbols.IModuleSymbol.ModuleVersionId
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.

31{ get; }

◆ Name

string IKVM.CoreLib.Symbols.IModuleSymbol.Name
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.

36{ get; }

◆ ScopeName

string IKVM.CoreLib.Symbols.IModuleSymbol.ScopeName
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.

41{ get; }

The documentation for this interface was generated from the following file: