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

 IkvmReflectionEventSymbol (IkvmReflectionSymbolContext context, IkvmReflectionTypeSymbol type, EventInfo underlyingEvent)
 Initializes a new instance.
 
IMethodSymbolGetAddMethod ()
 Returns the method used to add an event handler delegate to the event source.
 
IMethodSymbolGetAddMethod (bool nonPublic)
 Returns the method used to add an event handler delegate to the event source, specifying whether to return non-public methods.
 
IMethodSymbol[] GetOtherMethods ()
 Returns the public methods that have been associated with an event in metadata using the .other directive.
 
IMethodSymbol[] GetOtherMethods (bool nonPublic)
 Returns the methods that have been associated with the event in metadata using the .other directive, specifying whether to include non-public methods.
 
IMethodSymbolGetRaiseMethod ()
 Returns the method that is called when the event is raised.
 
IMethodSymbolGetRaiseMethod (bool nonPublic)
 When overridden in a derived class, returns the method that is called when the event is raised, specifying whether to return non-public methods.
 
IMethodSymbolGetRemoveMethod (bool nonPublic)
 When overridden in a derived class, retrieves the IMethodSymbol object for removing a method of the event, specifying whether to return non-public methods.
 
IMethodSymbolGetRemoveMethod ()
 Returns the method used to remove an event handler delegate from the event source.
 
- 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.IEventSymbol

Properties

IMethodSymbolAddMethod [get]
 Returns the method used to add an event handler delegate to the event source.
 
global::System.Reflection.EventAttributes Attributes [get]
 Gets the attributes for this event.
 
ITypeSymbolEventHandlerType [get]
 Gets the object of the underlying event-handler delegate associated with this event.
 
bool IsSpecialName [get]
 Gets a value indicating whether the IEventSymbol has a name with a special meaning.
 
IMethodSymbolRaiseMethod [get]
 Returns the method that is called when the event is raised.
 
IMethodSymbolRemoveMethod [get]
 Returns the method used to remove an event handler delegate from the event source.
 
- 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.IEventSymbol

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 IkvmReflectionEventSymbol.cs.

Constructor & Destructor Documentation

◆ IkvmReflectionEventSymbol()

IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.IkvmReflectionEventSymbol ( IkvmReflectionSymbolContext context,
IkvmReflectionTypeSymbol type,
EventInfo underlyingEvent )

Initializes a new instance.

Parameters
context
type
underlyingEvent

Definition at line 19 of file IkvmReflectionEventSymbol.cs.

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

Member Function Documentation

◆ GetAddMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetAddMethod ( )

Returns the method used to add an event handler delegate to the event source.

Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 37 of file IkvmReflectionEventSymbol.cs.

38 {
39 return _underlyingEvent.GetAddMethod() is { } m ? ResolveMethodSymbol(m) : null;
40 }

◆ GetAddMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetAddMethod ( bool nonPublic)

Returns the method used to add an event handler delegate to the event source, specifying whether to return non-public methods.

Parameters
nonPublic
Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 42 of file IkvmReflectionEventSymbol.cs.

43 {
44 return _underlyingEvent.GetAddMethod(nonPublic) is { } m ? ResolveMethodSymbol(m) : null;
45 }

◆ GetOtherMethods() [1/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetOtherMethods ( )

Returns the public methods that have been associated with an event in metadata using the .other directive.

Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 47 of file IkvmReflectionEventSymbol.cs.

48 {
49 return ResolveMethodSymbols(_underlyingEvent.GetOtherMethods());
50 }

◆ GetOtherMethods() [2/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetOtherMethods ( bool nonPublic)

Returns the methods that have been associated with the event in metadata using the .other directive, specifying whether to include non-public methods.

Parameters
nonPublic
Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 52 of file IkvmReflectionEventSymbol.cs.

53 {
54 return ResolveMethodSymbols(_underlyingEvent.GetOtherMethods(nonPublic));
55 }

◆ GetRaiseMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetRaiseMethod ( )

Returns the method that is called when the event is raised.

Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 57 of file IkvmReflectionEventSymbol.cs.

58 {
59 return _underlyingEvent.GetRaiseMethod() is { } m ? ResolveMethodSymbol(m) : null;
60 }

◆ GetRaiseMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetRaiseMethod ( bool nonPublic)

When overridden in a derived class, returns the method that is called when the event is raised, specifying whether to return non-public methods.

Parameters
nonPublic
Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 62 of file IkvmReflectionEventSymbol.cs.

63 {
64 return _underlyingEvent.GetRaiseMethod(nonPublic) is { } m ? ResolveMethodSymbol(m) : null;
65 }

◆ GetRemoveMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetRemoveMethod ( )

Returns the method used to remove an event handler delegate from the event source.

Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 72 of file IkvmReflectionEventSymbol.cs.

73 {
74 return _underlyingEvent.GetRemoveMethod() is { } m ? ResolveMethodSymbol(m) : null;
75 }

◆ GetRemoveMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.GetRemoveMethod ( bool nonPublic)

When overridden in a derived class, retrieves the IMethodSymbol object for removing a method of the event, specifying whether to return non-public methods.

Parameters
nonPublic
Returns

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 67 of file IkvmReflectionEventSymbol.cs.

68 {
69 return _underlyingEvent.GetRemoveMethod(nonPublic) is { } m ? ResolveMethodSymbol(m) : null;
70 }

Property Documentation

◆ AddMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.AddMethod
get

Returns the method used to add an event handler delegate to the event source.

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 25 of file IkvmReflectionEventSymbol.cs.

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

◆ Attributes

global.System.Reflection.EventAttributes IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.Attributes
get

Gets the attributes for this event.

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 27 of file IkvmReflectionEventSymbol.cs.

◆ EventHandlerType

ITypeSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.EventHandlerType
get

◆ IsSpecialName

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

Gets a value indicating whether the IEventSymbol has a name with a special meaning.

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 31 of file IkvmReflectionEventSymbol.cs.

◆ RaiseMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.RaiseMethod
get

Returns the method that is called when the event is raised.

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 33 of file IkvmReflectionEventSymbol.cs.

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

◆ RemoveMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol.RemoveMethod
get

Returns the method used to remove an event handler delegate from the event source.

Implements IKVM.CoreLib.Symbols.IEventSymbol.

Definition at line 35 of file IkvmReflectionEventSymbol.cs.

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

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