IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol Class Reference
Inheritance diagram for IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol:
IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMemberSymbol IKVM.CoreLib.Symbols.IPropertySymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol 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

Public Member Functions

 IkvmReflectionPropertySymbol (IkvmReflectionSymbolContext context, IkvmReflectionTypeSymbol type, PropertyInfo underlyingProperty)
 Initializes a new instance.
 
object? GetRawConstantValue ()
 Returns a literal value associated with the property by a compiler.
Returns

 
IParameterSymbol[] GetIndexParameters ()
 When overridden in a derived class, returns an array of all the index parameters for the property.
Returns

 
ITypeSymbol GetModifiedPropertyType ()
 Gets the modified type of this property object.
Returns

 
IMethodSymbol[] GetAccessors ()
 Returns an array whose elements reflect the public get and set accessors of the property reflected by the current instance.
Returns

 
IMethodSymbol[] GetAccessors (bool nonPublic)
 Returns an array whose elements reflect the public and, if specified, non-public get and set accessors of the property reflected by the current instance.
Parameters
nonPublic
Returns

 
IMethodSymbolGetGetMethod ()
 Returns the public get accessor for this property.
Returns

 
IMethodSymbolGetGetMethod (bool nonPublic)
 When overridden in a derived class, returns the public or non-public get accessor for this property.
Parameters
nonPublic
Returns

 
IMethodSymbolGetSetMethod ()
 Returns the public set accessor for this property.
Returns

 
IMethodSymbolGetSetMethod (bool nonPublic)
 When overridden in a derived class, returns the set accessor for this property.
Parameters
nonPublic
Returns

 
ITypeSymbol[] GetOptionalCustomModifiers ()
 Returns an array of types representing the optional custom modifiers of the property.
Returns

 
ITypeSymbol[] GetRequiredCustomModifiers ()
 Returns an array of types representing the required custom modifiers of the property.
Returns

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

Properties

PropertyInfo UnderlyingProperty [get]
 
global::System.Reflection.PropertyAttributes Attributes [get]
 Gets the attributes for this property.
 
ITypeSymbol PropertyType [get]
 Gets the type of this property.
 
bool CanRead [get]
 Gets a value indicating whether the property can be read.
 
bool CanWrite [get]
 Gets a value indicating whether the property can be written to.
 
bool IsSpecialName [get]
 Gets a value indicating whether the property is the special name.
 
IMethodSymbolGetMethod [get]
 Gets the get accessor for this property.
 
IMethodSymbolSetMethod [get]
 Gets the set accessor for this property.
 
- 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.IPropertySymbol

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.IkvmReflectionMemberSymbol
- Package Functions inherited from IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol

Detailed Description

Definition at line 10 of file IkvmReflectionPropertySymbol.cs.

Constructor & Destructor Documentation

◆ IkvmReflectionPropertySymbol()

IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.IkvmReflectionPropertySymbol ( IkvmReflectionSymbolContext context,
IkvmReflectionTypeSymbol type,
PropertyInfo underlyingProperty )

Initializes a new instance.

Parameters
context
type
underlyingProperty

Definition at line 21 of file IkvmReflectionPropertySymbol.cs.

21 :
22 base(context, type.ContainingModule, type, underlyingProperty)
23 {
24 _underlyingProperty = underlyingProperty ?? throw new ArgumentNullException(nameof(underlyingProperty));
25 }

Member Function Documentation

◆ GetAccessors() [1/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetAccessors ( )

Returns an array whose elements reflect the public get and set accessors of the property reflected by the current instance.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 69 of file IkvmReflectionPropertySymbol.cs.

70 {
71 return ResolveMethodSymbols(_underlyingProperty.GetAccessors());
72 }

◆ GetAccessors() [2/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetAccessors ( bool nonPublic)

Returns an array whose elements reflect the public and, if specified, non-public get and set accessors of the property reflected by the current instance.

Parameters
nonPublic
Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 75 of file IkvmReflectionPropertySymbol.cs.

76 {
77 throw new NotImplementedException();
78 }

◆ GetGetMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetGetMethod ( )

Returns the public get accessor for this property.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 81 of file IkvmReflectionPropertySymbol.cs.

82 {
83 return _underlyingProperty.GetGetMethod() is MethodInfo m ? ResolveMethodSymbol(m) : null;
84 }

◆ GetGetMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetGetMethod ( bool nonPublic)

When overridden in a derived class, returns the public or non-public get accessor for this property.

Parameters
nonPublic
Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 87 of file IkvmReflectionPropertySymbol.cs.

88 {
89 return _underlyingProperty.GetGetMethod(nonPublic) is MethodInfo m ? ResolveMethodSymbol(m) : null;
90 }

◆ GetIndexParameters()

IParameterSymbol[] IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetIndexParameters ( )

When overridden in a derived class, returns an array of all the index parameters for the property.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 57 of file IkvmReflectionPropertySymbol.cs.

58 {
59 return ResolveParameterSymbols(_underlyingProperty.GetIndexParameters());
60 }

◆ GetModifiedPropertyType()

ITypeSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetModifiedPropertyType ( )

Gets the modified type of this property object.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 63 of file IkvmReflectionPropertySymbol.cs.

64 {
65 throw new NotImplementedException();
66 }

◆ GetOptionalCustomModifiers()

ITypeSymbol[] IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetOptionalCustomModifiers ( )

Returns an array of types representing the optional custom modifiers of the property.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 105 of file IkvmReflectionPropertySymbol.cs.

106 {
107 return ResolveTypeSymbols(_underlyingProperty.GetOptionalCustomModifiers());
108 }

◆ GetRawConstantValue()

object? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetRawConstantValue ( )

Returns a literal value associated with the property by a compiler.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 51 of file IkvmReflectionPropertySymbol.cs.

52 {
53 return _underlyingProperty.GetRawConstantValue();
54 }

◆ GetRequiredCustomModifiers()

ITypeSymbol[] IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetRequiredCustomModifiers ( )

Returns an array of types representing the required custom modifiers of the property.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 111 of file IkvmReflectionPropertySymbol.cs.

112 {
113 return ResolveTypeSymbols(_underlyingProperty.GetRequiredCustomModifiers());
114 }

◆ GetSetMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetSetMethod ( )

Returns the public set accessor for this property.

Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 93 of file IkvmReflectionPropertySymbol.cs.

94 {
95 return _underlyingProperty.GetSetMethod() is MethodInfo m ? ResolveMethodSymbol(m) : null;
96 }

◆ GetSetMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetSetMethod ( bool nonPublic)

When overridden in a derived class, returns the set accessor for this property.

Parameters
nonPublic
Returns

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 99 of file IkvmReflectionPropertySymbol.cs.

100 {
101 return _underlyingProperty.GetSetMethod(nonPublic) is MethodInfo m ? ResolveMethodSymbol(m) : null;
102 }

Property Documentation

◆ Attributes

global.System.Reflection.PropertyAttributes IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.Attributes
get

Gets the attributes for this property.

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 30 of file IkvmReflectionPropertySymbol.cs.

◆ CanRead

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.CanRead
get

Gets a value indicating whether the property can be read.

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 36 of file IkvmReflectionPropertySymbol.cs.

◆ CanWrite

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.CanWrite
get

Gets a value indicating whether the property can be written to.

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 39 of file IkvmReflectionPropertySymbol.cs.

◆ GetMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.GetMethod
get

Gets the get accessor for this property.

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 45 of file IkvmReflectionPropertySymbol.cs.

45{ } m ? ResolveMethodSymbol(m) : null;

◆ IsSpecialName

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.IsSpecialName
get

Gets a value indicating whether the property is the special name.

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 42 of file IkvmReflectionPropertySymbol.cs.

◆ PropertyType

ITypeSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.PropertyType
get

Gets the type of this property.

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 33 of file IkvmReflectionPropertySymbol.cs.

◆ SetMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.SetMethod
get

Gets the set accessor for this property.

Implements IKVM.CoreLib.Symbols.IPropertySymbol.

Definition at line 48 of file IkvmReflectionPropertySymbol.cs.

48{ } m ? ResolveMethodSymbol(m) : null;

◆ UnderlyingProperty

PropertyInfo IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol.UnderlyingProperty
get

Definition at line 27 of file IkvmReflectionPropertySymbol.cs.


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