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

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

Inheritance diagram for IKVM.CoreLib.Symbols.IPropertySymbol:
IKVM.CoreLib.Symbols.IMemberSymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol

Public Member Functions

object? GetRawConstantValue ()
 Returns a literal value associated with the property by a compiler.
 
IMethodSymbol[] GetAccessors ()
 Returns an array whose elements reflect the public get and set accessors of the property reflected by the current instance.
 
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.
 
IMethodSymbolGetGetMethod ()
 Returns the public get accessor for this property.
 
IMethodSymbolGetGetMethod (bool nonPublic)
 When overridden in a derived class, returns the public or non-public get accessor for this property.
 
IMethodSymbolGetSetMethod ()
 Returns the public set accessor for this property.
 
IMethodSymbolGetSetMethod (bool nonPublic)
 When overridden in a derived class, returns the set accessor for this property.
 
IParameterSymbol[] GetIndexParameters ()
 When overridden in a derived class, returns an array of all the index parameters for the property.
 
ITypeSymbol GetModifiedPropertyType ()
 Gets the modified type of this property object.
 
ITypeSymbol[] GetOptionalCustomModifiers ()
 Returns an array of types representing the optional custom modifiers of the property.
 
ITypeSymbol[] GetRequiredCustomModifiers ()
 Returns an array of types representing the required custom modifiers of the property.
 
- 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

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.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 property and provides access to property metadata.

Definition at line 9 of file IPropertySymbol.cs.

Member Function Documentation

◆ GetAccessors() [1/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IPropertySymbol.GetAccessors ( )

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetAccessors() [2/2]

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetGetMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IPropertySymbol.GetGetMethod ( )

Returns the public get accessor for this property.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetGetMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IPropertySymbol.GetGetMethod ( bool nonPublic)

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

Parameters
nonPublic
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetIndexParameters()

IParameterSymbol[] IKVM.CoreLib.Symbols.IPropertySymbol.GetIndexParameters ( )

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetModifiedPropertyType()

ITypeSymbol IKVM.CoreLib.Symbols.IPropertySymbol.GetModifiedPropertyType ( )

Gets the modified type of this property object.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetOptionalCustomModifiers()

ITypeSymbol[] IKVM.CoreLib.Symbols.IPropertySymbol.GetOptionalCustomModifiers ( )

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetRawConstantValue()

object? IKVM.CoreLib.Symbols.IPropertySymbol.GetRawConstantValue ( )

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetRequiredCustomModifiers()

ITypeSymbol[] IKVM.CoreLib.Symbols.IPropertySymbol.GetRequiredCustomModifiers ( )

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetSetMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IPropertySymbol.GetSetMethod ( )

Returns the public set accessor for this property.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

◆ GetSetMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IPropertySymbol.GetSetMethod ( bool nonPublic)

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

Parameters
nonPublic
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Property Documentation

◆ Attributes

PropertyAttributes IKVM.CoreLib.Symbols.IPropertySymbol.Attributes
get

Gets the attributes for this property.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Definition at line 15 of file IPropertySymbol.cs.

15{ get; }

◆ CanRead

bool IKVM.CoreLib.Symbols.IPropertySymbol.CanRead
get

Gets a value indicating whether the property can be read.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Definition at line 25 of file IPropertySymbol.cs.

25{ get; }

◆ CanWrite

bool IKVM.CoreLib.Symbols.IPropertySymbol.CanWrite
get

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Definition at line 30 of file IPropertySymbol.cs.

30{ get; }

◆ GetMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IPropertySymbol.GetMethod
get

Gets the get accessor for this property.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Definition at line 46 of file IPropertySymbol.cs.

46{ get; }

◆ IsSpecialName

bool IKVM.CoreLib.Symbols.IPropertySymbol.IsSpecialName
get

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Definition at line 35 of file IPropertySymbol.cs.

35{ get; }

◆ PropertyType

ITypeSymbol IKVM.CoreLib.Symbols.IPropertySymbol.PropertyType
get

Gets the type of this property.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Definition at line 20 of file IPropertySymbol.cs.

20{ get; }

◆ SetMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IPropertySymbol.SetMethod
get

Gets the set accessor for this property.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionPropertySymbol.

Definition at line 51 of file IPropertySymbol.cs.

51{ get; }

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