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=9.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.StringassemblyFullNameFully assembly qualified name: System.Reflection.TypeExtensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Reflection.TypeExtensionsstatic java.lang.StringclassNameQualified class name: System.Reflection.TypeExtensionsstatic JCTypeclassTypeThe 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 TypeExtensionscast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTypeExtensions, a cast assert is made to check if types are compatible.static ConstructorInfoGetConstructor(NetType type, NetType[] types)static ConstructorInfo[]GetConstructors(NetType type)static ConstructorInfo[]GetConstructors(NetType type, BindingFlags bindingAttr)static MemberInfo[]GetDefaultMembers(NetType type)static EventInfoGetEvent(NetType type, java.lang.String name)static EventInfoGetEvent(NetType type, java.lang.String name, BindingFlags bindingAttr)static EventInfo[]GetEvents(NetType type)static EventInfo[]GetEvents(NetType type, BindingFlags bindingAttr)static FieldInfoGetField(NetType type, java.lang.String name)static FieldInfoGetField(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.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()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 MethodInfoGetMethod(NetType type, java.lang.String name)static MethodInfoGetMethod(NetType type, java.lang.String name, NetType[] types)static MethodInfoGetMethod(NetType type, java.lang.String name, BindingFlags bindingAttr)static MethodInfo[]GetMethods(NetType type)static MethodInfo[]GetMethods(NetType type, BindingFlags bindingAttr)static NetTypeGetNestedType(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 PropertyInfoGetProperty(NetType type, java.lang.String name)static PropertyInfoGetProperty(NetType type, java.lang.String name, NetType returnType)static PropertyInfoGetProperty(NetType type, java.lang.String name, NetType returnType, NetType[] types)static PropertyInfoGetProperty(NetType type, java.lang.String name, BindingFlags bindingAttr)static booleanIsAssignableFrom(NetType type, NetType c)static booleanIsInstanceOfType(NetType type, NetObject o)voidsetJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Reflection.TypeExtensions, Version=9.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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static TypeExtensions cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTypeExtensions, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
TypeExtensionsinstance- 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
-
-