public class TClrAssembly extends TClrBase implements IClrAssembly
Constructor and Description |
---|
TClrAssembly(DotNetNativeTypes.ClrAssembly assembly)
Create an instance of the .Net Assembly using the specified clr assembly pointer
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
static IClrType |
findType(java.lang.String typeName)
Gets the Type object with the specified name in all the assemblies loaded by the CLR application domains.
|
protected DotNetNativeTypes.ClrObject |
getClrObject()
Gets the base clr object pointer.
|
DotNetNativeTypes.ClrAssembly |
getDefaultPointer()
Gets the default clr assembly pointer.
|
java.lang.String |
getFullName()
Gets the display name of the assembly.
|
boolean |
getGlobalAssemblyCache()
Gets a value indicating whether the assembly was loaded from the global assembly cache.
|
java.lang.String |
getImageRuntimeVersion()
Gets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest.
|
java.lang.String |
getLocation()
Gets the full path or UNC location of the loaded file that contains the manifest.
|
static IClrAssembly |
getRegisteredAssembly(java.lang.String assemblyID)
Gets the registered .Net Assembly
|
IClrType |
getType()
Gets the exact runtime type of the current instance.
|
IClrType |
getType(java.lang.String typeName)
Gets the Type object with the specified name in the assembly instance.
|
IClrType |
getType(java.lang.String typeName,
boolean throwError)
Gets the Type object with the specified name in the assembly instance and optionally throws an exception if the type is not found.
|
IClrType |
getType(java.lang.String typeName,
boolean throwError,
boolean ignoreCase)
Gets the Type object with the specified name in the assembly instance, with the options of ignoring the case, and of throwing an exception if the type is not found.
|
IClrType[] |
getTypes()
Gets the types defined in this assembly.
|
static IClrAssembly |
load(java.lang.String assemblyString)
Loads an assembly with the specified name.
|
static IClrAssembly |
loadFile(java.lang.String path)
Loads the contents of an assembly file on the specified path.
|
static IClrAssembly |
loadFrom(java.lang.String assemblyFile)
Loads an assembly given its file name or path.
|
static void |
loadRegisteredAssembly(java.lang.String assemblyID)
Load the registered .Net Assembly using the specified AssemblyId
|
static IClrAssembly |
loadWithPartialName(java.lang.String partialName)
Loads an assembly from the application directory or from the global assembly cache using a partial name.
|
static void |
register(java.lang.String assemblyID,
java.lang.String location,
AssemblyLoadType loadType)
Register a .Net Assembly
|
static void |
register(java.lang.String assemblyID,
java.lang.String location,
AssemblyLoadType loadType,
boolean useUnsafeLoadFrom)
Register a .Net Assembly
|
static void |
register(java.lang.String assemblyID,
java.lang.String wsdlPath,
java.lang.String domain,
java.lang.String userName,
java.lang.String password,
WsdlProtocol protocol)
Register a .Net Assembly
|
static IClrAssembly |
unsafeLoadFrom(java.lang.String assemblyFile)
Loads an assembly into the load-from context, bypassing some security checks.
|
clearRef, equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, invokeGenericClrObjectMethod, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEvent, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEvent, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
public TClrAssembly(DotNetNativeTypes.ClrAssembly assembly)
assembly
- The clr Assembly pointerpublic static IClrAssembly getRegisteredAssembly(java.lang.String assemblyID) throws EClrError
assemblyID
- The ID of the registered .Net AssemblyEClrError
public static void loadRegisteredAssembly(java.lang.String assemblyID) throws EClrError
assemblyID
- The Id of the registered .Net Assembly.EClrError
public static final void register(java.lang.String assemblyID, java.lang.String location, AssemblyLoadType loadType, boolean useUnsafeLoadFrom)
assemblyID
- The id of the .Net Assembly to register.location
- The location of the Assembly to load.loadType
- Controls how the assembly is loaded from the location.useUnsafeLoadFrom
- Determines if the assembly to load will be bypassing some security checks.public static final void register(java.lang.String assemblyID, java.lang.String location, AssemblyLoadType loadType)
assemblyID
- The id of the .Net Assembly to register.location
- The location of the Assembly to load.loadType
- Controls how the assembly is loaded from the location.public static final void register(java.lang.String assemblyID, java.lang.String wsdlPath, java.lang.String domain, java.lang.String userName, java.lang.String password, WsdlProtocol protocol)
assemblyID
- The id of the .Net Assembly to register.wsdlPath
- domain
- userName
- password
- protocol
- public static final IClrAssembly loadFrom(java.lang.String assemblyFile) throws EClrError
assemblyFile
- The name or path of the file that contains the manifest of the assembly.EClrError
public static final IClrAssembly load(java.lang.String assemblyString) throws EClrError
assemblyString
- The long or short form of the assembly name.EClrError
public static final IClrAssembly loadFile(java.lang.String path) throws EClrError
path
- The fully qualified path of the file to load.EClrError
public static final IClrAssembly loadWithPartialName(java.lang.String partialName) throws EClrError
partialName
- The short form of the assembly name.EClrError
public static final IClrAssembly unsafeLoadFrom(java.lang.String assemblyFile) throws EClrError
assemblyFile
- The name or path of the file that contains the manifest of the assembly.EClrError
public static final IClrType findType(java.lang.String typeName) throws EClrError
typeName
- The full name of the type.EClrError
protected DotNetNativeTypes.ClrObject getClrObject() throws EClrError
getClrObject
in class TClrBase
EClrError
public void close() throws java.lang.Exception
public DotNetNativeTypes.ClrAssembly getDefaultPointer()
getDefaultPointer
in interface IClrAssembly
public java.lang.String getFullName() throws EClrError
getFullName
in interface IClrAssembly
EClrError
public java.lang.String getLocation() throws EClrError
getLocation
in interface IClrAssembly
EClrError
public boolean getGlobalAssemblyCache() throws EClrError
getGlobalAssemblyCache
in interface IClrAssembly
EClrError
public java.lang.String getImageRuntimeVersion() throws EClrError
getImageRuntimeVersion
in interface IClrAssembly
EClrError
public IClrType getType(java.lang.String typeName, boolean throwError, boolean ignoreCase) throws EClrError
getType
in interface IClrAssembly
typeName
- The full name of the type.throwError
- true to throw an exception if the type is not found; false to return null.ignoreCase
- true to ignore the case of the type name; otherwise, false.EClrError
public IClrType getType(java.lang.String typeName, boolean throwError) throws EClrError
getType
in interface IClrAssembly
typeName
- The full name of the type.throwError
- true to throw an exception if the type is not found; false to return null.EClrError
public IClrType getType(java.lang.String typeName) throws EClrError
getType
in interface IClrAssembly
typeName
- The full name of the type.EClrError
public IClrType[] getTypes() throws java.lang.Exception
getTypes
in interface IClrAssembly
java.lang.Exception