IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol Class Reference
Inheritance diagram for IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol:
IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodBaseSymbol IKVM.CoreLib.Symbols.IMethodSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMemberSymbol IKVM.CoreLib.Symbols.IMethodBaseSymbol IKVM.CoreLib.Symbols.IMethodBaseSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol IKVM.CoreLib.Symbols.IMemberSymbol IKVM.CoreLib.Symbols.IMemberSymbol IKVM.CoreLib.Symbols.IMemberSymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider

Public Member Functions

 IkvmReflectionMethodSymbol (IkvmReflectionSymbolContext context, IkvmReflectionModuleSymbol module, IkvmReflectionTypeSymbol? type, MethodInfo underlyingMethod)
 Initializes a new instance.
 
IMethodSymbol GetBaseDefinition ()
 When overridden in a derived class, returns the object for the method on the direct or indirect base class in which the method represented by this instance was first declared.
 
IMethodSymbol GetGenericMethodDefinition ()
 Returns a object that represents a generic method definition from which the current method can be constructed.
 
IMethodSymbol MakeGenericMethod (params ITypeSymbol[] typeArguments)
 Substitutes the elements of an array of types for the type parameters of the current generic method definition, and returns a MethodInfo object representing the resulting constructed method.
 
- Public Member Functions inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodBaseSymbol
 IkvmReflectionMethodBaseSymbol (IkvmReflectionSymbolContext context, IkvmReflectionModuleSymbol module, IkvmReflectionTypeSymbol? type, MethodBase underlyingMethodBase)
 Initializes a new instance.
 
ITypeSymbol[] GetGenericArguments ()
 Returns an array of ITypeSymbol objects that represent the type arguments of a generic method or the type parameters of a generic method definition.
 
global::System.Reflection.MethodImplAttributes GetMethodImplementationFlags ()
 When overridden in a derived class, returns the MethodImplAttributes flags.
 
IParameterSymbol[] GetParameters ()
 When overridden in a derived class, gets the parameters of the specified method or constructor.
 
- Public Member Functions inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMemberSymbol
 IkvmReflectionMemberSymbol (IkvmReflectionSymbolContext context, IkvmReflectionModuleSymbol module, IkvmReflectionTypeSymbol? type, MemberInfo underlyingMember)
 Initializes a new instance.
 
virtual 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.
 
virtual 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.
 
virtual 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.IkvmReflection.IkvmReflectionSymbol
 IkvmReflectionSymbol (IkvmReflectionSymbolContext context)
 Initializes a new instance.
 
- Public Member Functions inherited from IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider
- Public Member Functions inherited from IKVM.CoreLib.Symbols.IMethodBaseSymbol
- Public Member Functions inherited from IKVM.CoreLib.Symbols.IMethodSymbol

Properties

IParameterSymbol ReturnParameter [get]
 Gets a IParameterSymbol object that contains information about the return type of the method, such as whether the return type has custom modifiers.
 
ITypeSymbol ReturnType [get]
 Gets the return type of this method.
 
ICustomAttributeSymbolProvider ReturnTypeCustomAttributes [get]
 Gets the custom attributes for the return type.
 
- Properties inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodBaseSymbol
global::System.Reflection.MethodAttributes Attributes [get]
 Gets the attributes associated with this method.
 
global::System.Reflection.CallingConventions CallingConvention [get]
 Gets a value indicating the calling conventions for this method.
 
bool ContainsGenericParameters [get]
 Gets a value indicating whether the generic method contains unassigned generic type parameters.
 
bool IsAbstract [get]
 Gets a value indicating whether the method is abstract.
 
bool IsAssembly [get]
 Gets a value indicating whether the potential visibility of this method or constructor is described by Assembly; that is, the method or constructor is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly.
 
bool IsConstructor [get]
 Gets a value indicating whether the method is a constructor.
 
bool IsFamily [get]
 Gets a value indicating whether the visibility of this method or constructor is described by Family; that is, the method or constructor is visible only within its class and derived classes.
 
bool IsFamilyAndAssembly [get]
 Gets a value indicating whether the visibility of this method or constructor is described by FamANDAssem; that is, the method or constructor can be called by derived classes, but only if they are in the same assembly.
 
bool IsFamilyOrAssembly [get]
 Gets a value indicating whether the potential visibility of this method or constructor is described by FamORAssem; that is, the method or constructor can be called by derived classes wherever they are, and by classes in the same assembly.
 
bool IsFinal [get]
 Gets a value indicating whether this method is final.
 
bool IsGenericMethod [get]
 Gets a value indicating whether the method is generic.
 
bool IsGenericMethodDefinition [get]
 Gets a value indicating whether the method is a generic method definition.
 
bool IsHideBySig [get]
 Gets a value indicating whether only a member of the same kind with exactly the same signature is hidden in the derived class.
 
bool IsPrivate [get]
 Gets a value indicating whether this member is private.
 
bool IsPublic [get]
 Gets a value indicating whether this is a public method.
 
bool IsSpecialName [get]
 Gets a value indicating whether this method has a special name.
 
bool IsStatic [get]
 Gets a value indicating whether the method is static.
 
bool IsVirtual [get]
 Gets a value indicating whether the method is virtual.
 
global::System.Reflection.MethodImplAttributes MethodImplementationFlags [get]
 Gets the MethodImplAttributes flags that specify the attributes of a method implementation.
 
- Properties inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMemberSymbol
virtual ? ITypeSymbol DeclaringType [get]
 Gets the class that declares this member.
 
virtual global::System.Reflection.MemberTypes MemberType [get]
 When overridden in a derived class, gets a value indicating the type of the member - method, constructor, event, and so on.
 
virtual int MetadataToken [get]
 Gets a value that identifies a metadata element.
 
virtual IModuleSymbol Module [get]
 Gets the module in which the type that declares the member represented by the current is defined.
 
virtual string Name [get]
 Gets the name of the current member.
 
override bool IsMissing [get]
 Returns true if the symbol is missing.
 
- Properties inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol
IkvmReflectionSymbolContext Context [get]
 Gets the associated IkvmReflectionSymbolContext.
 
virtual bool IsMissing [get]
 Returns true if the symbol is missing.
 
- Properties inherited from IKVM.CoreLib.Symbols.ISymbol
- Properties inherited from IKVM.CoreLib.Symbols.IMemberSymbol
- Properties inherited from IKVM.CoreLib.Symbols.IMethodBaseSymbol
- Properties inherited from IKVM.CoreLib.Symbols.IMethodSymbol

Additional Inherited Members

- Protected Member Functions inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol
virtual IkvmReflectionMemberSymbol ResolveMemberSymbol (MemberInfo member)
 Resolves the symbol for the specified type.
 
- Package Functions inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodBaseSymbol
- Package Functions inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMemberSymbol
- Package Functions inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol

Detailed Description

Definition at line 13 of file IkvmReflectionMethodSymbol.cs.

Constructor & Destructor Documentation

◆ IkvmReflectionMethodSymbol()

IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol.IkvmReflectionMethodSymbol ( IkvmReflectionSymbolContext context,
IkvmReflectionModuleSymbol module,
IkvmReflectionTypeSymbol? type,
MethodInfo underlyingMethod )

Initializes a new instance.

Parameters
context
module
type
underlyingMethod

Definition at line 29 of file IkvmReflectionMethodSymbol.cs.

29 :
30 base(context, module, type, underlyingMethod)
31 {
32 _underlyingMethod = underlyingMethod ?? throw new ArgumentNullException(nameof(underlyingMethod));
33 }

Member Function Documentation

◆ GetBaseDefinition()

IMethodSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol.GetBaseDefinition ( )

When overridden in a derived class, returns the object for the method on the direct or indirect base class in which the method represented by this instance was first declared.

Returns

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 114 of file IkvmReflectionMethodSymbol.cs.

115 {
116 return ResolveMethodSymbol(_underlyingMethod.GetBaseDefinition());
117 }

◆ GetGenericMethodDefinition()

IMethodSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol.GetGenericMethodDefinition ( )

Returns a object that represents a generic method definition from which the current method can be constructed.

Returns

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 119 of file IkvmReflectionMethodSymbol.cs.

120 {
121 return ResolveMethodSymbol(_underlyingMethod.GetGenericMethodDefinition());
122 }

◆ MakeGenericMethod()

IMethodSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol.MakeGenericMethod ( params ITypeSymbol[] typeArguments)

Substitutes the elements of an array of types for the type parameters of the current generic method definition, and returns a MethodInfo object representing the resulting constructed method.

Parameters
typeArguments
Returns

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 124 of file IkvmReflectionMethodSymbol.cs.

125 {
126 return ResolveMethodSymbol(_underlyingMethod.MakeGenericMethod(UnpackTypeSymbols(typeArguments)));
127 }

Property Documentation

◆ ReturnParameter

IParameterSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol.ReturnParameter
get

Gets a IParameterSymbol object that contains information about the return type of the method, such as whether the return type has custom modifiers.

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 108 of file IkvmReflectionMethodSymbol.cs.

◆ ReturnType

ITypeSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol.ReturnType
get

Gets the return type of this method.

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 110 of file IkvmReflectionMethodSymbol.cs.

◆ ReturnTypeCustomAttributes

ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol.ReturnTypeCustomAttributes
get

Gets the custom attributes for the return type.

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 112 of file IkvmReflectionMethodSymbol.cs.


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