Package system.runtime.interopservices
Class _AssemblyImplementation
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.interopservices._AssemblyImplementation
-
- All Implemented Interfaces:
IJCOBridgeReflected
,_Assembly
public class _AssemblyImplementation extends NetObject implements _Assembly
The base .NET class managing System.Runtime.InteropServices._Assembly, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.InteropServices._Assembly
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: mscorlibstatic String
className
Qualified class name: System.Runtime.InteropServices._Assemblystatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description _AssemblyImplementation(Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Runtime.InteropServices._Assembly- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interface_Assembly
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interface_Assembly
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interface_Assembly
- 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 Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interface_Assembly
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interface_Assembly
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
To_Assembly
public static _Assembly To_Assembly(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance into_Assembly
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
_Assembly
instance- Throws:
Throwable
- in case of error during cast operation
-
GetFile
public FileStream GetFile(String name) throws Throwable
-
GetFiles
public FileStream[] GetFiles() throws Throwable
-
GetFiles
public FileStream[] GetFiles(boolean getResourceModules) throws Throwable
-
GetManifestResourceStream
public Stream GetManifestResourceStream(String name) throws Throwable
- Specified by:
GetManifestResourceStream
in interface_Assembly
- Throws:
Throwable
-
GetManifestResourceStream
public Stream GetManifestResourceStream(NetType type, String name) throws Throwable
- Specified by:
GetManifestResourceStream
in interface_Assembly
- Throws:
Throwable
-
CreateInstance
public NetObject CreateInstance(String typeName) throws Throwable
- Specified by:
CreateInstance
in interface_Assembly
- Throws:
Throwable
-
CreateInstance
public NetObject CreateInstance(String typeName, boolean ignoreCase) throws Throwable
- Specified by:
CreateInstance
in interface_Assembly
- Throws:
Throwable
-
CreateInstance
public NetObject CreateInstance(String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws Throwable
- Specified by:
CreateInstance
in interface_Assembly
- Throws:
Throwable
-
GetCustomAttributes
public NetObject[] GetCustomAttributes(boolean inherit) throws Throwable
- Specified by:
GetCustomAttributes
in interface_Assembly
- Throws:
Throwable
-
GetCustomAttributes
public NetObject[] GetCustomAttributes(NetType attributeType, boolean inherit) throws Throwable
- Specified by:
GetCustomAttributes
in interface_Assembly
- Throws:
Throwable
-
GetSatelliteAssembly
public Assembly GetSatelliteAssembly(CultureInfo culture) throws Throwable
- Specified by:
GetSatelliteAssembly
in interface_Assembly
- Throws:
Throwable
-
GetSatelliteAssembly
public Assembly GetSatelliteAssembly(CultureInfo culture, Version version) throws Throwable
- Specified by:
GetSatelliteAssembly
in interface_Assembly
- Throws:
Throwable
-
GetName
public AssemblyName GetName() throws Throwable
-
GetName
public AssemblyName GetName(boolean copiedName) throws Throwable
-
GetReferencedAssemblies
public AssemblyName[] GetReferencedAssemblies() throws Throwable
- Specified by:
GetReferencedAssemblies
in interface_Assembly
- Throws:
Throwable
-
GetManifestResourceInfo
public ManifestResourceInfo GetManifestResourceInfo(String resourceName) throws Throwable
- Specified by:
GetManifestResourceInfo
in interface_Assembly
- Throws:
Throwable
-
LoadModule
public Module LoadModule(String moduleName, byte[] rawModule) throws Throwable
- Specified by:
LoadModule
in interface_Assembly
- Throws:
Throwable
-
LoadModule
public Module LoadModule(String dupParam0, JCORefOut dupParam1) throws Throwable
- Specified by:
LoadModule
in interface_Assembly
- Throws:
Throwable
-
LoadModule
public Module LoadModule(String moduleName, byte[] rawModule, byte[] rawSymbolStore) throws Throwable
- Specified by:
LoadModule
in interface_Assembly
- Throws:
Throwable
-
LoadModule
public Module LoadModule(String dupParam0, JCORefOut dupParam1, JCORefOut dupParam2) throws Throwable
- Specified by:
LoadModule
in interface_Assembly
- Throws:
Throwable
-
GetLoadedModules
public Module[] GetLoadedModules() throws Throwable
- Specified by:
GetLoadedModules
in interface_Assembly
- Throws:
Throwable
-
GetLoadedModules
public Module[] GetLoadedModules(boolean getResourceModules) throws Throwable
- Specified by:
GetLoadedModules
in interface_Assembly
- Throws:
Throwable
-
GetModules
public Module[] GetModules() throws Throwable
- Specified by:
GetModules
in interface_Assembly
- Throws:
Throwable
-
GetModules
public Module[] GetModules(boolean getResourceModules) throws Throwable
- Specified by:
GetModules
in interface_Assembly
- Throws:
Throwable
-
GetManifestResourceNames
public String[] GetManifestResourceNames() throws Throwable
- Specified by:
GetManifestResourceNames
in interface_Assembly
- Throws:
Throwable
-
GetType
public NetType GetType(String name, boolean throwOnError, boolean ignoreCase) throws Throwable
-
GetExportedTypes
public NetType[] GetExportedTypes() throws Throwable
- Specified by:
GetExportedTypes
in interface_Assembly
- Throws:
Throwable
-
GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context) throws Throwable
- Specified by:
GetObjectData
in interface_Assembly
- Throws:
Throwable
-
getGlobalAssemblyCache
public boolean getGlobalAssemblyCache() throws Throwable
- Specified by:
getGlobalAssemblyCache
in interface_Assembly
- Throws:
Throwable
-
getEntryPoint
public MethodInfo getEntryPoint() throws Throwable
- Specified by:
getEntryPoint
in interface_Assembly
- Throws:
Throwable
-
getEvidence
public Evidence getEvidence() throws Throwable
- Specified by:
getEvidence
in interface_Assembly
- Throws:
Throwable
-
getCodeBase
public String getCodeBase() throws Throwable
- Specified by:
getCodeBase
in interface_Assembly
- Throws:
Throwable
-
getEscapedCodeBase
public String getEscapedCodeBase() throws Throwable
- Specified by:
getEscapedCodeBase
in interface_Assembly
- Throws:
Throwable
-
getFullName
public String getFullName() throws Throwable
- Specified by:
getFullName
in interface_Assembly
- Throws:
Throwable
-
getLocation
public String getLocation() throws Throwable
- Specified by:
getLocation
in interface_Assembly
- Throws:
Throwable
-
addModuleResolve
public void addModuleResolve(ModuleResolveEventHandler handler) throws Throwable
- Specified by:
addModuleResolve
in interface_Assembly
- Throws:
Throwable
-
removeModuleResolve
public void removeModuleResolve(ModuleResolveEventHandler handler) throws Throwable
- Specified by:
removeModuleResolve
in interface_Assembly
- Throws:
Throwable
-
-