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

Discovers the attributes of a method and provides access to method metadata. More...

Inheritance diagram for IKVM.CoreLib.Symbols.IMethodSymbol:
IKVM.CoreLib.Symbols.IMethodBaseSymbol IKVM.CoreLib.Symbols.IMemberSymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol

Public Member Functions

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.IMethodBaseSymbol
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.
 
IParameterSymbol[] GetParameters ()
 When overridden in a derived class, gets the parameters of the specified method or constructor.
 
MethodImplAttributes GetMethodImplementationFlags ()
 When overridden in a derived class, returns the MethodImplAttributes flags.
 
- 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

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.IMethodBaseSymbol
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.IMemberSymbol
IModuleSymbol Module [get]
 Gets the module in which the type that declares the member represented by the current is defined.
 
ITypeSymbolDeclaringType [get]
 Gets the class that declares this member.
 
MemberTypes MemberType [get]
 When overridden in a derived class, gets a value indicating the type of the member - method, constructor, event, and so on.
 
int MetadataToken [get]
 Gets a value that identifies a metadata element.
 
string Name [get]
 Gets the name of the current member.
 
- Properties inherited from IKVM.CoreLib.Symbols.ISymbol
bool IsMissing [get]
 Returns true if the symbol is missing.
 

Detailed Description

Discovers the attributes of a method and provides access to method metadata.

Definition at line 7 of file IMethodSymbol.cs.

Member Function Documentation

◆ GetBaseDefinition()

◆ GetGenericMethodDefinition()

◆ MakeGenericMethod()

IMethodSymbol IKVM.CoreLib.Symbols.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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.

Property Documentation

◆ ReturnParameter

IParameterSymbol IKVM.CoreLib.Symbols.IMethodSymbol.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.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.

Definition at line 13 of file IMethodSymbol.cs.

13{ get; }

◆ ReturnType

ITypeSymbol IKVM.CoreLib.Symbols.IMethodSymbol.ReturnType
get

Gets the return type of this method.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.

Definition at line 18 of file IMethodSymbol.cs.

18{ get; }

◆ ReturnTypeCustomAttributes

ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.IMethodSymbol.ReturnTypeCustomAttributes
get

Gets the custom attributes for the return type.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionMethodSymbol.

Definition at line 23 of file IMethodSymbol.cs.

23{ get; }

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