IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol Class Reference
Inheritance diagram for IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol:
IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol IKVM.CoreLib.Symbols.IParameterSymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider

Public Member Functions

 IkvmReflectionParameterSymbol (IkvmReflectionSymbolContext context, IkvmReflectionMethodBaseSymbol method, ParameterInfo underlyingParameter)
 Initializes a new instance.
 
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.
 
- 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

Properties

global::System.Reflection.ParameterAttributes Attributes [get]
 Gets the attributes for this parameter.
 
object DefaultValue [get]
 Gets a value indicating the default value if the parameter has a default value.
 
bool HasDefaultValue [get]
 Gets a value that indicates whether this parameter has a default value.
 
bool IsIn [get]
 Gets a value indicating whether this is an input parameter.
 
bool IsLcid [get]
 Gets a value indicating whether this parameter is a locale identifier (lcid).
 
bool IsOptional [get]
 Gets a value indicating whether this parameter is optional.
 
bool IsOut [get]
 Gets a value indicating whether this is an output parameter.
 
bool IsRetval [get]
 Gets a value indicating whether this is a Retval parameter.
 
IMemberSymbol Member [get]
 Gets a value indicating the member in which the parameter is implemented.
 
int MetadataToken [get]
 Gets a value that identifies this parameter in metadata.
 
string? Name [get]
 Gets the name of the parameter.
 
ITypeSymbol ParameterType [get]
 Gets the Type of this parameter.
 
int Position [get]
 Gets the zero-based position of the parameter in the formal parameter list.
 
- 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.IParameterSymbol

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.IkvmReflectionSymbol

Detailed Description

Definition at line 9 of file IkvmReflectionParameterSymbol.cs.

Constructor & Destructor Documentation

◆ IkvmReflectionParameterSymbol()

IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.IkvmReflectionParameterSymbol ( IkvmReflectionSymbolContext context,
IkvmReflectionMethodBaseSymbol method,
ParameterInfo underlyingParameter )

Initializes a new instance.

Parameters
context
method
underlyingParameter

Definition at line 21 of file IkvmReflectionParameterSymbol.cs.

21 :
22 base(context)
23 {
24 _method = method ?? throw new ArgumentNullException(nameof(method));
25 _underlyingParameter = underlyingParameter ?? throw new ArgumentNullException(nameof(underlyingParameter));
26 }

Member Function Documentation

◆ GetCustomAttributes() [1/2]

ImmutableArray< CustomAttributeSymbol > IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.GetCustomAttributes ( )

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

Implements IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider.

Definition at line 56 of file IkvmReflectionParameterSymbol.cs.

57 {
58 return ResolveCustomAttributes(_underlyingParameter.GetCustomAttributesData());
59 }

◆ GetCustomAttributes() [2/2]

ImmutableArray< CustomAttributeSymbol > IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.GetCustomAttributes ( 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

Implements IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider.

Definition at line 61 of file IkvmReflectionParameterSymbol.cs.

62 {
63 return ResolveCustomAttributes(_underlyingParameter.__GetCustomAttributes(((IkvmReflectionTypeSymbol)attributeType).UnderlyingType, false));
64 }

◆ IsDefined()

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.IsDefined ( ITypeSymbol attributeType)

Indicates whether one or more instance of attributeType is defined on this member.

Parameters
attributeType
Returns

Implements IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider.

Definition at line 66 of file IkvmReflectionParameterSymbol.cs.

67 {
68 return _underlyingParameter.IsDefined(((IkvmReflectionTypeSymbol)attributeType).UnderlyingType, false);
69 }

Property Documentation

◆ Attributes

global.System.Reflection.ParameterAttributes IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.Attributes
get

Gets the attributes for this parameter.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 30 of file IkvmReflectionParameterSymbol.cs.

◆ DefaultValue

object IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.DefaultValue
get

Gets a value indicating the default value if the parameter has a default value.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 32 of file IkvmReflectionParameterSymbol.cs.

◆ HasDefaultValue

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.HasDefaultValue
get

Gets a value that indicates whether this parameter has a default value.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 34 of file IkvmReflectionParameterSymbol.cs.

◆ IsIn

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.IsIn
get

Gets a value indicating whether this is an input parameter.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 36 of file IkvmReflectionParameterSymbol.cs.

◆ IsLcid

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.IsLcid
get

Gets a value indicating whether this parameter is a locale identifier (lcid).

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 38 of file IkvmReflectionParameterSymbol.cs.

◆ IsOptional

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.IsOptional
get

Gets a value indicating whether this parameter is optional.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 40 of file IkvmReflectionParameterSymbol.cs.

◆ IsOut

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.IsOut
get

Gets a value indicating whether this is an output parameter.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 42 of file IkvmReflectionParameterSymbol.cs.

◆ IsRetval

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.IsRetval
get

Gets a value indicating whether this is a Retval parameter.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 44 of file IkvmReflectionParameterSymbol.cs.

◆ Member

IMemberSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.Member
get

Gets a value indicating the member in which the parameter is implemented.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 46 of file IkvmReflectionParameterSymbol.cs.

◆ MetadataToken

int IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.MetadataToken
get

Gets a value that identifies this parameter in metadata.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 48 of file IkvmReflectionParameterSymbol.cs.

◆ Name

string? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.Name
get

Gets the name of the parameter.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 50 of file IkvmReflectionParameterSymbol.cs.

◆ ParameterType

ITypeSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.ParameterType
get

Gets the Type of this parameter.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 52 of file IkvmReflectionParameterSymbol.cs.

◆ Position

int IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol.Position
get

Gets the zero-based position of the parameter in the formal parameter list.

Implements IKVM.CoreLib.Symbols.IParameterSymbol.

Definition at line 54 of file IkvmReflectionParameterSymbol.cs.


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