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

 IkvmReflectionFieldSymbol (IkvmReflectionSymbolContext context, IkvmReflectionTypeSymbol type, FieldInfo underlyingField)
 Initializes a new instance.
 
ITypeSymbol[] GetOptionalCustomModifiers ()
 Gets an array of types that identify the optional custom modifiers of the field.
 
object? GetRawConstantValue ()
 Returns a literal value associated with the field by a compiler.
 
ITypeSymbol[] GetRequiredCustomModifiers ()
 Gets an array of types that identify the required custom modifiers of the property.
 
- 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.IFieldSymbol

Properties

global::System.Reflection.FieldAttributes Attributes [get]
 Gets the attributes associated with this field.
 
ITypeSymbol FieldType [get]
 Gets the type of this field object.
 
bool IsAssembly [get]
 Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.Assembly; that is, the field is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly.
 
bool IsFamily [get]
 Gets a value indicating whether the visibility of this field is described by FieldAttributes.Family; that is, the field is visible only within its class and derived classes.
 
bool IsFamilyAndAssembly [get]
 Gets a value indicating whether the visibility of this field is described by FieldAttributes.FamANDAssem; that is, the field can be accessed from derived classes, but only if they are in the same assembly.
 
bool IsFamilyOrAssembly [get]
 Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.FamORAssem; that is, the field can be accessed by derived classes wherever they are, and by classes in the same assembly.
 
bool IsInitOnly [get]
 Gets a value indicating whether the field can only be set in the body of the constructor.
 
bool IsLiteral [get]
 Gets a value indicating whether the value is written at compile time and cannot be changed.
 
bool IsNotSerialized [get]
 Gets a value indicating whether this field has the NotSerialized attribute.
 
bool IsPinvokeImpl [get]
 Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.
 
bool IsPrivate [get]
 Gets a value indicating whether the field is private.
 
bool IsPublic [get]
 Gets a value indicating whether the field is public.
 
bool IsSpecialName [get]
 Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.
 
bool IsStatic [get]
 Gets a value indicating whether the field is static.
 
- 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.IFieldSymbol

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 8 of file IkvmReflectionFieldSymbol.cs.

Constructor & Destructor Documentation

◆ IkvmReflectionFieldSymbol()

IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IkvmReflectionFieldSymbol ( IkvmReflectionSymbolContext context,
IkvmReflectionTypeSymbol type,
FieldInfo underlyingField )

Initializes a new instance.

Parameters
context
type
underlyingField

Definition at line 19 of file IkvmReflectionFieldSymbol.cs.

19 :
20 base(context, type.ContainingModule, type, underlyingField)
21 {
22 _underlyingField = underlyingField ?? throw new ArgumentNullException(nameof(underlyingField));
23 }

Member Function Documentation

◆ GetOptionalCustomModifiers()

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

Gets an array of types that identify the optional custom modifiers of the field.

Returns

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 57 of file IkvmReflectionFieldSymbol.cs.

58 {
59 return ResolveTypeSymbols(_underlyingField.GetOptionalCustomModifiers());
60 }

◆ GetRawConstantValue()

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

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

Returns

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 62 of file IkvmReflectionFieldSymbol.cs.

63 {
64 return _underlyingField.GetRawConstantValue();
65 }

◆ GetRequiredCustomModifiers()

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

Gets an array of types that identify the required custom modifiers of the property.

Returns

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 67 of file IkvmReflectionFieldSymbol.cs.

68 {
69 return ResolveTypeSymbols(_underlyingField.GetRequiredCustomModifiers());
70 }

Property Documentation

◆ Attributes

global.System.Reflection.FieldAttributes IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.Attributes
get

Gets the attributes associated with this field.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 27 of file IkvmReflectionFieldSymbol.cs.

◆ FieldType

ITypeSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.FieldType
get

Gets the type of this field object.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 29 of file IkvmReflectionFieldSymbol.cs.

◆ IsAssembly

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsAssembly
get

Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.Assembly; that is, the field 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.IFieldSymbol.

Definition at line 31 of file IkvmReflectionFieldSymbol.cs.

◆ IsFamily

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsFamily
get

Gets a value indicating whether the visibility of this field is described by FieldAttributes.Family; that is, the field is visible only within its class and derived classes.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 33 of file IkvmReflectionFieldSymbol.cs.

◆ IsFamilyAndAssembly

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsFamilyAndAssembly
get

Gets a value indicating whether the visibility of this field is described by FieldAttributes.FamANDAssem; that is, the field can be accessed from derived classes, but only if they are in the same assembly.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 35 of file IkvmReflectionFieldSymbol.cs.

◆ IsFamilyOrAssembly

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsFamilyOrAssembly
get

Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.FamORAssem; that is, the field can be accessed by derived classes wherever they are, and by classes in the same assembly.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 37 of file IkvmReflectionFieldSymbol.cs.

◆ IsInitOnly

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsInitOnly
get

Gets a value indicating whether the field can only be set in the body of the constructor.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 39 of file IkvmReflectionFieldSymbol.cs.

◆ IsLiteral

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsLiteral
get

Gets a value indicating whether the value is written at compile time and cannot be changed.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 41 of file IkvmReflectionFieldSymbol.cs.

◆ IsNotSerialized

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsNotSerialized
get

Gets a value indicating whether this field has the NotSerialized attribute.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 44 of file IkvmReflectionFieldSymbol.cs.

◆ IsPinvokeImpl

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsPinvokeImpl
get

Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 47 of file IkvmReflectionFieldSymbol.cs.

◆ IsPrivate

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsPrivate
get

Gets a value indicating whether the field is private.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 49 of file IkvmReflectionFieldSymbol.cs.

◆ IsPublic

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsPublic
get

Gets a value indicating whether the field is public.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 51 of file IkvmReflectionFieldSymbol.cs.

◆ IsSpecialName

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

Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 53 of file IkvmReflectionFieldSymbol.cs.

◆ IsStatic

bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol.IsStatic
get

Gets a value indicating whether the field is static.

Implements IKVM.CoreLib.Symbols.IFieldSymbol.

Definition at line 55 of file IkvmReflectionFieldSymbol.cs.


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