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

Public Member Functions

 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

Properties

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

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.ReflectionMemberSymbol
- Package Functions inherited from IKVM.CoreLib.Symbols.Reflection.ReflectionSymbol

Detailed Description

Definition at line 10 of file ReflectionMethodBaseSymbol.cs.

Constructor & Destructor Documentation

◆ ReflectionMethodBaseSymbol()

IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.ReflectionMethodBaseSymbol ( ReflectionSymbolContext context,
ReflectionModuleSymbol module,
ReflectionTypeSymbol? type,
MethodBase underlyingMethodBase )

Initializes a new instance.

Parameters
context
module
type
underlyingMethodBase

Definition at line 26 of file ReflectionMethodBaseSymbol.cs.

26 :
27 base(context, module, type, underlyingMethodBase)
28 {
29 _underlyingMethodBase = underlyingMethodBase ?? throw new ArgumentNullException(nameof(underlyingMethodBase));
30 }

Member Function Documentation

◆ GetGenericArguments()

ITypeSymbol[] IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.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

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 135 of file ReflectionMethodBaseSymbol.cs.

136 {
137 return ResolveTypeSymbols(_underlyingMethodBase.GetGenericArguments());
138 }

◆ GetMethodImplementationFlags()

MethodImplAttributes IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.GetMethodImplementationFlags ( )

When overridden in a derived class, returns the MethodImplAttributes flags.

Returns

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 141 of file ReflectionMethodBaseSymbol.cs.

142 {
143 return _underlyingMethodBase.GetMethodImplementationFlags();
144 }

◆ GetParameters()

IParameterSymbol[] IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.GetParameters ( )

When overridden in a derived class, gets the parameters of the specified method or constructor.

Returns

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 147 of file ReflectionMethodBaseSymbol.cs.

148 {
149 return ResolveParameterSymbols(_underlyingMethodBase.GetParameters());
150 }

Property Documentation

◆ Attributes

MethodAttributes IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.Attributes
get

Gets the attributes associated with this method.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 78 of file ReflectionMethodBaseSymbol.cs.

◆ CallingConvention

CallingConventions IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.CallingConvention
get

Gets a value indicating the calling conventions for this method.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 81 of file ReflectionMethodBaseSymbol.cs.

◆ ContainsGenericParameters

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.ContainsGenericParameters
get

Gets a value indicating whether the generic method contains unassigned generic type parameters.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 84 of file ReflectionMethodBaseSymbol.cs.

◆ IsAbstract

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsAbstract
get

Gets a value indicating whether the method is abstract.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 87 of file ReflectionMethodBaseSymbol.cs.

◆ IsAssembly

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.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.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 90 of file ReflectionMethodBaseSymbol.cs.

◆ IsConstructor

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsConstructor
get

Gets a value indicating whether the method is a constructor.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 93 of file ReflectionMethodBaseSymbol.cs.

◆ IsFamily

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.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.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 96 of file ReflectionMethodBaseSymbol.cs.

◆ IsFamilyAndAssembly

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.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.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 99 of file ReflectionMethodBaseSymbol.cs.

◆ IsFamilyOrAssembly

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.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.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 102 of file ReflectionMethodBaseSymbol.cs.

◆ IsFinal

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsFinal
get

Gets a value indicating whether this method is final.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 105 of file ReflectionMethodBaseSymbol.cs.

◆ IsGenericMethod

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsGenericMethod
get

Gets a value indicating whether the method is generic.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 108 of file ReflectionMethodBaseSymbol.cs.

◆ IsGenericMethodDefinition

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsGenericMethodDefinition
get

Gets a value indicating whether the method is a generic method definition.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 111 of file ReflectionMethodBaseSymbol.cs.

◆ IsHideBySig

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.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.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 114 of file ReflectionMethodBaseSymbol.cs.

◆ IsPrivate

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsPrivate
get

Gets a value indicating whether this member is private.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 117 of file ReflectionMethodBaseSymbol.cs.

◆ IsPublic

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsPublic
get

Gets a value indicating whether this is a public method.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 120 of file ReflectionMethodBaseSymbol.cs.

◆ IsSpecialName

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsSpecialName
get

Gets a value indicating whether this method has a special name.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 129 of file ReflectionMethodBaseSymbol.cs.

◆ IsStatic

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsStatic
get

Gets a value indicating whether the method is static.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 123 of file ReflectionMethodBaseSymbol.cs.

◆ IsVirtual

bool IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.IsVirtual
get

Gets a value indicating whether the method is virtual.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 126 of file ReflectionMethodBaseSymbol.cs.

◆ MethodImplementationFlags

MethodImplAttributes IKVM.CoreLib.Symbols.Reflection.ReflectionMethodBaseSymbol.MethodImplementationFlags
get

Gets the MethodImplAttributes flags that specify the attributes of a method implementation.

Implements IKVM.CoreLib.Symbols.IMethodBaseSymbol.

Definition at line 132 of file ReflectionMethodBaseSymbol.cs.


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