public class TypeExtensions extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.TypeExtensions
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Reflection.TypeExtensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Reflection.TypeExtensions
|
static java.lang.String |
className
Qualified class name: System.Reflection.TypeExtensions
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TypeExtensions() |
TypeExtensions(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeExtensions |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TypeExtensions, 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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static 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,
BindingFlags bindingAttr) |
static MethodInfo |
GetMethod(NetType type,
java.lang.String name,
NetType[] types) |
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,
BindingFlags bindingAttr) |
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 boolean |
IsAssignableFrom(NetType type,
NetType c) |
static boolean |
IsInstanceOfType(NetType type,
NetObject o) |
void |
setJCOInstance(JCObject instance) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TypeExtensions()
throws java.lang.Throwable
java.lang.Throwablepublic TypeExtensions(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static TypeExtensions cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TypeExtensions, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTypeExtensions instancejava.lang.Throwable - in case of error during cast operationpublic static ConstructorInfo GetConstructor(NetType type, NetType[] types) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static ConstructorInfo[] GetConstructors(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static ConstructorInfo[] GetConstructors(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static MemberInfo[] GetDefaultMembers(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static EventInfo GetEvent(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
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
public static EventInfo[] GetEvents(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static EventInfo[] GetEvents(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static FieldInfo GetField(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
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
public static FieldInfo[] GetFields(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static FieldInfo[] GetFields(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static NetType[] GetGenericArguments(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static NetType[] GetInterfaces(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic static MemberInfo[] GetMember(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
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
public static MemberInfo[] GetMembers(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static MemberInfo[] GetMembers(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static MethodInfo GetMethod(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
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
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
public static MethodInfo[] GetMethods(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static MethodInfo[] GetMethods(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
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
public static NetType[] GetNestedTypes(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static PropertyInfo[] GetProperties(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static PropertyInfo[] GetProperties(NetType type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static PropertyInfo GetProperty(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
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
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
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
public static boolean IsAssignableFrom(NetType type, NetType c) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static boolean IsInstanceOfType(NetType type, NetObject o) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject