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

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

Inheritance diagram for IKVM.CoreLib.Symbols.IFieldSymbol:
IKVM.CoreLib.Symbols.IMemberSymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol

Public Member Functions

object? GetRawConstantValue ()
 Returns a literal value associated with the field by a compiler.
 
ITypeSymbol[] GetOptionalCustomModifiers ()
 Gets an array of types that identify the optional custom modifiers of the field.
 
ITypeSymbol[] GetRequiredCustomModifiers ()
 Gets an array of types that identify 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

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

Definition at line 9 of file IFieldSymbol.cs.

Member Function Documentation

◆ GetOptionalCustomModifiers()

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

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

◆ GetRawConstantValue()

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

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

◆ GetRequiredCustomModifiers()

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

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Property Documentation

◆ Attributes

FieldAttributes IKVM.CoreLib.Symbols.IFieldSymbol.Attributes
get

Gets the attributes associated with this field.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 15 of file IFieldSymbol.cs.

15{ get; }

◆ FieldType

ITypeSymbol IKVM.CoreLib.Symbols.IFieldSymbol.FieldType
get

Gets the type of this field object.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 20 of file IFieldSymbol.cs.

20{ get; }

◆ IsAssembly

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 25 of file IFieldSymbol.cs.

25{ get; }

◆ IsFamily

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 30 of file IFieldSymbol.cs.

30{ get; }

◆ IsFamilyAndAssembly

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 35 of file IFieldSymbol.cs.

35{ get; }

◆ IsFamilyOrAssembly

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 40 of file IFieldSymbol.cs.

40{ get; }

◆ IsInitOnly

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsInitOnly
get

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 45 of file IFieldSymbol.cs.

45{ get; }

◆ IsLiteral

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsLiteral
get

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 50 of file IFieldSymbol.cs.

50{ get; }

◆ IsNotSerialized

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsNotSerialized
get

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 55 of file IFieldSymbol.cs.

55{ get; }

◆ IsPinvokeImpl

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsPinvokeImpl
get

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 60 of file IFieldSymbol.cs.

60{ get; }

◆ IsPrivate

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsPrivate
get

Gets a value indicating whether the field is private.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 65 of file IFieldSymbol.cs.

65{ get; }

◆ IsPublic

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsPublic
get

Gets a value indicating whether the field is public.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 70 of file IFieldSymbol.cs.

70{ get; }

◆ IsSpecialName

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsSpecialName
get

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

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 75 of file IFieldSymbol.cs.

75{ get; }

◆ IsStatic

bool IKVM.CoreLib.Symbols.IFieldSymbol.IsStatic
get

Gets a value indicating whether the field is static.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionFieldSymbol.

Definition at line 80 of file IFieldSymbol.cs.

80{ get; }

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