public class TypeDelegator extends TypeInfo
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Reflection.TypeDelegator
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.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Reflection.TypeDelegator
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TypeDelegator() |
TypeDelegator(NetType delegatingType)
Initializes a new instance by invoking the .NET constructor.
|
TypeDelegator(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeDelegator |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TypeDelegator, a cast assert is made to check if types are compatible. |
ConstructorInfo[] |
GetConstructors(BindingFlags bindingAttr)
Invokes the .NET member GetConstructors.
|
NetObject[] |
GetCustomAttributes(boolean inherit)
Invokes the .NET member GetCustomAttributes.
|
NetObject[] |
GetCustomAttributes(NetType attributeType,
boolean inherit)
Invokes the .NET member GetCustomAttributes.
|
NetType |
GetElementType()
Invokes the .NET member GetElementType.
|
EventInfo |
GetEvent(java.lang.String name,
BindingFlags bindingAttr)
Invokes the .NET member GetEvent.
|
EventInfo[] |
GetEvents()
Invokes the .NET member GetEvents.
|
EventInfo[] |
GetEvents(BindingFlags bindingAttr)
Invokes the .NET member GetEvents.
|
FieldInfo |
GetField(java.lang.String name,
BindingFlags bindingAttr)
Invokes the .NET member GetField.
|
FieldInfo[] |
GetFields(BindingFlags bindingAttr)
Invokes the .NET member GetFields.
|
NetType[] |
GetFunctionPointerCallingConventions()
Invokes the .NET member GetFunctionPointerCallingConventions.
|
NetType[] |
GetFunctionPointerParameterTypes()
Invokes the .NET member GetFunctionPointerParameterTypes.
|
NetType |
GetFunctionPointerReturnType()
Invokes the .NET member GetFunctionPointerReturnType.
|
NetType |
GetInterface(java.lang.String name,
boolean ignoreCase)
Invokes the .NET member GetInterface.
|
InterfaceMapping |
GetInterfaceMap(NetType interfaceType)
Invokes the .NET member GetInterfaceMap.
|
NetType[] |
GetInterfaces()
Invokes the .NET member GetInterfaces.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
MemberInfo[] |
GetMember(java.lang.String name,
MemberTypes type,
BindingFlags bindingAttr)
Invokes the .NET member GetMember.
|
MemberInfo[] |
GetMembers(BindingFlags bindingAttr)
Invokes the .NET member GetMembers.
|
MemberInfo |
GetMemberWithSameMetadataDefinitionAs(MemberInfo member)
Invokes the .NET member GetMemberWithSameMetadataDefinitionAs.
|
MethodInfo[] |
GetMethods(BindingFlags bindingAttr)
Invokes the .NET member GetMethods.
|
NetType |
GetNestedType(java.lang.String name,
BindingFlags bindingAttr)
Invokes the .NET member GetNestedType.
|
NetType[] |
GetNestedTypes(BindingFlags bindingAttr)
Invokes the .NET member GetNestedTypes.
|
PropertyInfo[] |
GetProperties(BindingFlags bindingAttr)
Invokes the .NET member GetProperties.
|
NetObject |
InvokeMember(java.lang.String dupParam0,
BindingFlags dupParam1,
Binder dupParam2,
NetObject dupParam3,
NetObject[] dupParam4,
ParameterModifier[] dupParam5,
CultureInfo dupParam6,
JCORefOut dupParam7)
Invokes the .NET member InvokeMember.
|
NetObject |
InvokeMember(java.lang.String name,
BindingFlags invokeAttr,
Binder binder,
NetObject target,
NetObject[] args,
ParameterModifier[] modifiers,
CultureInfo culture,
java.lang.String[] namedParameters)
Invokes the .NET member InvokeMember.
|
boolean |
IsAssignableFrom(TypeInfo typeInfo)
Invokes the .NET member IsAssignableFrom.
|
boolean |
IsDefined(NetType attributeType,
boolean inherit)
Invokes the .NET member IsDefined.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
AsType, getDeclaredConstructors, GetDeclaredEvent, getDeclaredEvents, GetDeclaredField, getDeclaredFields, getDeclaredMembers, GetDeclaredMethod, getDeclaredMethods, GetDeclaredMethods, GetDeclaredNestedType, getDeclaredNestedTypes, getDeclaredProperties, GetDeclaredProperty, getGenericTypeParameters, getImplementedInterfacespublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TypeDelegator()
throws java.lang.Throwable
java.lang.Throwablepublic TypeDelegator(NetType delegatingType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
delegatingType - the argument of type NetTypejava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic TypeDelegator(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static TypeDelegator cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TypeDelegator, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTypeDelegator instancejava.lang.Throwable - in case of error during cast operationpublic ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) throws java.lang.Throwable
bindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject[] GetCustomAttributes(boolean inherit) throws java.lang.Throwable
inherit - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject[] GetCustomAttributes(NetType attributeType, boolean inherit) throws java.lang.Throwable
attributeType - the argument of type NetTypeinherit - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType GetElementType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic EventInfo GetEvent(java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable
name - the argument of type java.lang.StringbindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic EventInfo[] GetEvents() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic EventInfo[] GetEvents(BindingFlags bindingAttr) throws java.lang.Throwable
bindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic FieldInfo GetField(java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable
name - the argument of type java.lang.StringbindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic FieldInfo[] GetFields(BindingFlags bindingAttr) throws java.lang.Throwable
bindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType[] GetFunctionPointerCallingConventions() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic NetType[] GetFunctionPointerParameterTypes() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic NetType GetFunctionPointerReturnType() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic NetType GetInterface(java.lang.String name, boolean ignoreCase) throws java.lang.Throwable
name - the argument of type java.lang.StringignoreCase - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic InterfaceMapping GetInterfaceMap(NetType interfaceType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
interfaceType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic NetType[] GetInterfaces() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class TypeInfopublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class TypeInfopublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class TypeInfonull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class TypeInfopublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class TypeInfopublic MemberInfo[] GetMember(java.lang.String name, MemberTypes type, BindingFlags bindingAttr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
name - the argument of type java.lang.Stringtype - the argument of type MemberTypesbindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic MemberInfo[] GetMembers(BindingFlags bindingAttr) throws java.lang.Throwable
bindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
member - the argument of type MemberInfojava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic MethodInfo[] GetMethods(BindingFlags bindingAttr) throws java.lang.Throwable
bindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType GetNestedType(java.lang.String name, BindingFlags bindingAttr) throws java.lang.Throwable
name - the argument of type java.lang.StringbindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType[] GetNestedTypes(BindingFlags bindingAttr) throws java.lang.Throwable
bindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic PropertyInfo[] GetProperties(BindingFlags bindingAttr) throws java.lang.Throwable
bindingAttr - the argument of type BindingFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject InvokeMember(java.lang.String dupParam0, BindingFlags dupParam1, Binder dupParam2, NetObject dupParam3, NetObject[] dupParam4, ParameterModifier[] dupParam5, CultureInfo dupParam6, JCORefOut dupParam7) throws java.lang.Throwable
dupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type BindingFlagsdupParam2 - the argument of type BinderdupParam3 - the argument of type NetObjectdupParam4 - the argument of type NetObject[]dupParam5 - the argument of type ParameterModifier[]dupParam6 - the argument of type CultureInfodupParam7 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject InvokeMember(java.lang.String name, BindingFlags invokeAttr, Binder binder, NetObject target, NetObject[] args, ParameterModifier[] modifiers, CultureInfo culture, java.lang.String[] namedParameters) throws java.lang.Throwable
name - the argument of type java.lang.StringinvokeAttr - the argument of type BindingFlagsbinder - the argument of type Bindertarget - the argument of type NetObjectargs - the argument of type NetObject[]modifiers - the argument of type ParameterModifier[]culture - the argument of type CultureInfonamedParameters - the argument of type java.lang.String[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsAssignableFrom(TypeInfo typeInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
IsAssignableFrom in class TypeInfotypeInfo - the argument of type TypeInfojava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic boolean IsDefined(NetType attributeType, boolean inherit) throws java.lang.Throwable
attributeType - the argument of type NetTypeinherit - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class TypeInfoinstance - the new underlying object