Package system.reflection
Class EventInfo
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.MemberInfo
-
- system.reflection.EventInfo
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
ComAwareEventInfo
public class EventInfo extends MemberInfo
The base .NET class managing System.Reflection.EventInfo, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.EventInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Reflection.EventInfostatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventInfo
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoEventInfo
, a cast assert is made to check if types are compatible.MethodInfo
getAddMethod()
MethodInfo
GetAddMethod()
MethodInfo
GetAddMethod(boolean nonPublic)
EventAttributes
getAttributes()
NetType
getEventHandlerType()
boolean
getIsMulticast()
boolean
getIsSpecialName()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeMethodInfo[]
GetOtherMethods()
MethodInfo[]
GetOtherMethods(boolean nonPublic)
MethodInfo
getRaiseMethod()
MethodInfo
GetRaiseMethod()
MethodInfo
GetRaiseMethod(boolean nonPublic)
MethodInfo
getRemoveMethod()
MethodInfo
GetRemoveMethod()
MethodInfo
GetRemoveMethod(boolean nonPublic)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.reflection.MemberInfo
GetCustomAttributes, GetCustomAttributes, getDeclaringType, getIsCollectible, getMemberType, getMetadataToken, getModule, getName, getReflectedType, HasSameMetadataDefinitionAs, IsDefined
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.EventInfo- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classMemberInfo
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classMemberInfo
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classMemberInfo
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classMemberInfo
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMemberInfo
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classMemberInfo
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static EventInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoEventInfo
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
EventInfo
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetAddMethod
public MethodInfo GetAddMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetAddMethod
public MethodInfo GetAddMethod(boolean nonPublic) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetRaiseMethod
public MethodInfo GetRaiseMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetRaiseMethod
public MethodInfo GetRaiseMethod(boolean nonPublic) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetRemoveMethod
public MethodInfo GetRemoveMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetRemoveMethod
public MethodInfo GetRemoveMethod(boolean nonPublic) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetOtherMethods
public MethodInfo[] GetOtherMethods() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
GetOtherMethods
public MethodInfo[] GetOtherMethods(boolean nonPublic) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getIsMulticast
public boolean getIsMulticast() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException
-
getIsSpecialName
public boolean getIsSpecialName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAttributes
public EventAttributes getAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAddMethod
public MethodInfo getAddMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRaiseMethod
public MethodInfo getRaiseMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRemoveMethod
public MethodInfo getRemoveMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEventHandlerType
public NetType getEventHandlerType() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
-