Package system.reflection
Class TypeExtensions
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.TypeExtensions
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class TypeExtensions extends NetObject
The base .NET class managing System.Reflection.TypeExtensions, System.Reflection.TypeExtensions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.TypeExtensions
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.Reflection.TypeExtensions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Reflection.TypeExtensionsstatic java.lang.String
className
Qualified class name: System.Reflection.TypeExtensionsstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TypeExtensions()
TypeExtensions(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeExtensions
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTypeExtensions
, a cast assert is made to check if types are compatible.static ConstructorInfo
GetConstructor(NetType type, NetType[] types)
static ConstructorInfo[]
GetConstructors(NetType type)
static ConstructorInfo[]
GetConstructors(NetType type, BindingFlags bindingAttr)
static MemberInfo[]
GetDefaultMembers(NetType type)
static EventInfo
GetEvent(NetType type, java.lang.String name)
static EventInfo
GetEvent(NetType type, java.lang.String name, BindingFlags bindingAttr)
static EventInfo[]
GetEvents(NetType type)
static EventInfo[]
GetEvents(NetType type, BindingFlags bindingAttr)
static FieldInfo
GetField(NetType type, java.lang.String name)
static FieldInfo
GetField(NetType type, java.lang.String name, BindingFlags bindingAttr)
static FieldInfo[]
GetFields(NetType type)
static FieldInfo[]
GetFields(NetType type, BindingFlags bindingAttr)
static NetType[]
GetGenericArguments(NetType type)
static NetType[]
GetInterfaces(NetType type)
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 Typestatic MemberInfo[]
GetMember(NetType type, java.lang.String name)
static MemberInfo[]
GetMember(NetType type, java.lang.String name, BindingFlags bindingAttr)
static MemberInfo[]
GetMembers(NetType type)
static MemberInfo[]
GetMembers(NetType type, BindingFlags bindingAttr)
static MethodInfo
GetMethod(NetType type, java.lang.String name)
static MethodInfo
GetMethod(NetType type, java.lang.String name, NetType[] types)
static MethodInfo
GetMethod(NetType type, java.lang.String name, BindingFlags bindingAttr)
static MethodInfo[]
GetMethods(NetType type)
static MethodInfo[]
GetMethods(NetType type, BindingFlags bindingAttr)
static NetType
GetNestedType(NetType type, java.lang.String name, BindingFlags bindingAttr)
static NetType[]
GetNestedTypes(NetType type, BindingFlags bindingAttr)
static PropertyInfo[]
GetProperties(NetType type)
static PropertyInfo[]
GetProperties(NetType type, BindingFlags bindingAttr)
static PropertyInfo
GetProperty(NetType type, java.lang.String name)
static PropertyInfo
GetProperty(NetType type, java.lang.String name, NetType returnType)
static PropertyInfo
GetProperty(NetType type, java.lang.String name, NetType returnType, NetType[] types)
static PropertyInfo
GetProperty(NetType type, java.lang.String name, BindingFlags bindingAttr)
static boolean
IsAssignableFrom(NetType type, NetType c)
static boolean
IsInstanceOfType(NetType type, NetObject o)
void
setJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Reflection.TypeExtensions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Reflection.TypeExtensions- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.TypeExtensions- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TypeExtensions cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTypeExtensions
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TypeExtensions
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsAssignableFrom
public static boolean IsAssignableFrom(NetType type, NetType c) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
IsInstanceOfType
public static boolean IsInstanceOfType(NetType type, NetObject o) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetConstructor
public static ConstructorInfo GetConstructor(NetType type, NetType[] types) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetConstructors
public static ConstructorInfo[] GetConstructors(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetConstructors
public static ConstructorInfo[] GetConstructors(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetEvent
public static EventInfo GetEvent(NetType type, java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetEvent
public static EventInfo GetEvent(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetEvents
public static EventInfo[] GetEvents(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetEvents
public static EventInfo[] GetEvents(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetField
public static FieldInfo GetField(NetType type, java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetField
public static FieldInfo GetField(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetFields
public static FieldInfo[] GetFields(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetFields
public static FieldInfo[] GetFields(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetDefaultMembers
public static MemberInfo[] GetDefaultMembers(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMember
public static MemberInfo[] GetMember(NetType type, java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMember
public static MemberInfo[] GetMember(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMembers
public static MemberInfo[] GetMembers(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMembers
public static MemberInfo[] GetMembers(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMethod
public static MethodInfo GetMethod(NetType type, java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMethod
public static MethodInfo GetMethod(NetType type, java.lang.String name, NetType[] types) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMethod
public static MethodInfo GetMethod(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMethods
public static MethodInfo[] GetMethods(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetMethods
public static MethodInfo[] GetMethods(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetProperty
public static PropertyInfo GetProperty(NetType type, java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetProperty
public static PropertyInfo GetProperty(NetType type, java.lang.String name, NetType returnType, NetType[] types) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetProperty
public static PropertyInfo GetProperty(NetType type, java.lang.String name, NetType returnType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetProperty
public static PropertyInfo GetProperty(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetProperties
public static PropertyInfo[] GetProperties(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetProperties
public static PropertyInfo[] GetProperties(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetNestedType
public static NetType GetNestedType(NetType type, java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetGenericArguments
public static NetType[] GetGenericArguments(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetInterfaces
public static NetType[] GetInterfaces(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
GetNestedTypes
public static NetType[] GetNestedTypes(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
-