IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol Class Reference
Inheritance diagram for IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol:
IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol IKVM.CoreLib.Symbols.IMethodSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionMemberSymbol IKVM.CoreLib.Symbols.IMethodBaseSymbol IKVM.CoreLib.Symbols.IMethodBaseSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionSymbol 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

 ReflectionMethodSymbol (ReflectionSymbolContext context, ReflectionModuleSymbol module, ReflectionTypeSymbol? 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.
Returns

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

 
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.
Parameters
typeArguments
Returns

 
- Public Member Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol
 ReflectionMethodBaseSymbol (ReflectionSymbolContext context, ReflectionModuleSymbol module, ReflectionTypeSymbol? 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.
Returns

 
MethodImplAttributes GetMethodImplementationFlags ()
 When overridden in a derived class, returns the MethodImplAttributes flags.
Returns

 
IParameterSymbol[] GetParameters ()
 When overridden in a derived class, gets the parameters of the specified method or constructor.
Returns

 
- Public Member Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionMemberSymbol
 ReflectionMemberSymbol (ReflectionSymbolContext context, ReflectionModuleSymbol module, ReflectionTypeSymbol? 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.
Returns

 
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.
Parameters
attributeType
Returns

 
virtual bool IsDefined (ITypeSymbol attributeType)
 Indicates whether one or more instance of attributeType is defined on this member.
Parameters
attributeType
Returns

 
- 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.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.Reflection.ReflectionMethodBaseSymbol
MethodAttributes Attributes [get]
 Gets the attributes associated with this method.
 
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 IsStatic [get]
 Gets a value indicating whether the method is static.
 
bool IsVirtual [get]
 Gets a value indicating whether the method is virtual.
 
bool IsSpecialName [get]
 Gets a value indicating whether this method has a special name.
 
MethodImplAttributes MethodImplementationFlags [get]
 Gets the MethodImplAttributes flags that specify the attributes of a method implementation.
 
- Properties inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionMemberSymbol
virtual IModuleSymbol Module [get]
 Gets the module in which the type that declares the member represented by the current is defined.
 
virtual ? ITypeSymbol DeclaringType [get]
 Gets the class that declares this member.
 
virtual 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 string Name [get]
 Gets the name of the current member.
 
- 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.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.Reflection.ReflectionSymbol
virtual ReflectionMemberSymbol ResolveMemberSymbol (MemberInfo member)
 Resolves the symbol for the specified type.
 
- Package Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol
- Package Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionMemberSymbol
- Package Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionSymbol

Detailed Description

Definition at line 11 of file ReflectionMethodSymbol.cs.

Constructor & Destructor Documentation

◆ ReflectionMethodSymbol()

IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.ReflectionMethodSymbol ( ReflectionSymbolContext context,
ReflectionModuleSymbol module,
ReflectionTypeSymbol? type,
MethodInfo underlyingMethod )

Initializes a new instance.

Parameters
context
module
type
underlyingMethod

Definition at line 27 of file ReflectionMethodSymbol.cs.

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

Member Function Documentation

◆ GetBaseDefinition()

IMethodSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.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 122 of file ReflectionMethodSymbol.cs.

123 {
124 return ResolveMethodSymbol(_underlyingMethod.GetBaseDefinition());
125 }

◆ GetGenericMethodDefinition()

IMethodSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.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 128 of file ReflectionMethodSymbol.cs.

129 {
130 return ResolveMethodSymbol(_underlyingMethod.GetGenericMethodDefinition());
131 }

◆ MakeGenericMethod()

IMethodSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.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 134 of file ReflectionMethodSymbol.cs.

135 {
136 return ResolveMethodSymbol(_underlyingMethod.MakeGenericMethod(UnpackTypeSymbols(typeArguments)));
137 }

Property Documentation

◆ ReturnParameter

IParameterSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.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 113 of file ReflectionMethodSymbol.cs.

◆ ReturnType

ITypeSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.ReturnType
get

Gets the return type of this method.

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 116 of file ReflectionMethodSymbol.cs.

◆ ReturnTypeCustomAttributes

ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.ReturnTypeCustomAttributes
get

Gets the custom attributes for the return type.

Implements IKVM.CoreLib.Symbols.IMethodSymbol.

Definition at line 119 of file ReflectionMethodSymbol.cs.


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