IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol Class Referenceabstract
Inheritance diagram for IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol:
IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionAssemblySymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMemberSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionModuleSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionParameterSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionFieldSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodBaseSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionPropertySymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionTypeSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionConstructorSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionMethodSymbol

Public Member Functions

 IkvmReflectionSymbol (IkvmReflectionSymbolContext context)
 Initializes a new instance.
 

Protected Member Functions

virtual IkvmReflectionMemberSymbol ResolveMemberSymbol (MemberInfo member)
 Resolves the symbol for the specified type.
 

Properties

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

Detailed Description

Definition at line 21 of file IkvmReflectionSymbol.cs.

Constructor & Destructor Documentation

◆ IkvmReflectionSymbol()

IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol.IkvmReflectionSymbol ( IkvmReflectionSymbolContext context)

Initializes a new instance.

Parameters
context

Definition at line 30 of file IkvmReflectionSymbol.cs.

31 {
32 _context = context ?? throw new ArgumentNullException(nameof(context));
33 }

Member Function Documentation

◆ ResolveMemberSymbol()

virtual IkvmReflectionMemberSymbol IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol.ResolveMemberSymbol ( MemberInfo member)
protectedvirtual

Resolves the symbol for the specified type.

Parameters
member
Returns

Definition at line 97 of file IkvmReflectionSymbol.cs.

98 {
99 return member.MemberType switch
100 {
101 MemberTypes.Constructor => ResolveConstructorSymbol((ConstructorInfo)member),
102 MemberTypes.Event => ResolveEventSymbol((EventInfo)member),
103 MemberTypes.Field => ResolveFieldSymbol((FieldInfo)member),
104 MemberTypes.Method => ResolveMethodSymbol((MethodInfo)member),
105 MemberTypes.Property => ResolvePropertySymbol((PropertyInfo)member),
106 MemberTypes.TypeInfo => ResolveTypeSymbol((Type)member),
107 MemberTypes.NestedType => ResolveTypeSymbol((Type)member),
108 MemberTypes.Custom => throw new NotImplementedException(),
109 MemberTypes.All => throw new NotImplementedException(),
110 _ => throw new InvalidOperationException(),
111 };
112 }

Property Documentation

◆ Context

IkvmReflectionSymbolContext IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol.Context
getprotected

Gets the associated IkvmReflectionSymbolContext.

Definition at line 38 of file IkvmReflectionSymbol.cs.

◆ IsMissing

virtual bool IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionSymbol.IsMissing
get

Returns true if the symbol is missing.

Implements IKVM.CoreLib.Symbols.ISymbol.

Definition at line 41 of file IkvmReflectionSymbol.cs.


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