Package system.reflection.emit
Class AssemblyBuilder
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.Assembly
-
- system.reflection.emit.AssemblyBuilder
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class AssemblyBuilder extends Assembly
The base .NET class managing System.Reflection.Emit.AssemblyBuilder, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Emit.AssemblyBuilder
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.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Reflection.Emit.AssemblyBuilderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description AssemblyBuilder()
AssemblyBuilder(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssemblyBuilder
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoAssemblyBuilder
, a cast assert is made to check if types are compatible.static AssemblyBuilder
DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access)
ModuleBuilder
DefineDynamicModule(java.lang.String name)
ModuleBuilder
GetDynamicModule(java.lang.String name)
NetType[]
GetExportedTypes()
FileStream
GetFile(java.lang.String name)
FileStream[]
GetFiles(boolean getResourceModules)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeManifestResourceInfo
GetManifestResourceInfo(java.lang.String resourceName)
java.lang.String[]
GetManifestResourceNames()
Stream
GetManifestResourceStream(java.lang.String name)
Stream
GetManifestResourceStream(NetType type, java.lang.String name)
void
SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
void
SetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1)
void
SetCustomAttribute(CustomAttributeBuilder customBuilder)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.reflection.Assembly
addModuleResolve, CreateInstance, CreateInstance, CreateInstance, CreateQualifiedName, GetAssembly, GetCallingAssembly, getCodeBase, GetCustomAttributes, GetCustomAttributes, GetEntryAssembly, getEntryPoint, getEscapedCodeBase, GetExecutingAssembly, GetFiles, GetForwardedTypes, getFullName, getGlobalAssemblyCache, getHostContext, getImageRuntimeVersion, getIsCollectible, getIsDynamic, getIsFullyTrusted, GetLoadedModules, GetLoadedModules, getLocation, getManifestModule, GetModule, GetModules, GetModules, GetName, GetName, GetObjectData, GetReferencedAssemblies, getReflectionOnly, GetSatelliteAssembly, GetSatelliteAssembly, getSecurityRuleSet, GetType, GetType, GetType, GetTypes, IsDefined, Load, Load, Load, Load, Load, Load, LoadFile, LoadFrom, LoadFrom, LoadFrom, LoadModule, LoadModule, LoadModule, LoadModule, LoadWithPartialName, ReflectionOnlyLoad, ReflectionOnlyLoad, ReflectionOnlyLoad, ReflectionOnlyLoadFrom, removeModuleResolve, SetEntryAssembly, UnsafeLoadFrom
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.Emit.AssemblyBuilder- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classAssembly
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classAssembly
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classAssembly
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classAssembly
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classAssembly
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classAssembly
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static AssemblyBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoAssemblyBuilder
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
AssemblyBuilder
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetFile
public FileStream GetFile(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetFile
in classAssembly
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
-
GetFiles
public FileStream[] GetFiles(boolean getResourceModules) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetFiles
in classAssembly
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
-
GetManifestResourceStream
public Stream GetManifestResourceStream(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetManifestResourceStream
in classAssembly
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
-
GetManifestResourceStream
public Stream GetManifestResourceStream(NetType type, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetManifestResourceStream
in classAssembly
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
-
DefineDynamicAssembly
public static AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
-
DefineDynamicModule
public ModuleBuilder DefineDynamicModule(java.lang.String name) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
-
GetDynamicModule
public ModuleBuilder GetDynamicModule(java.lang.String name) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
-
GetManifestResourceInfo
public ManifestResourceInfo GetManifestResourceInfo(java.lang.String resourceName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetManifestResourceInfo
in classAssembly
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
-
GetManifestResourceNames
public java.lang.String[] GetManifestResourceNames() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetManifestResourceNames
in classAssembly
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
-
GetExportedTypes
public NetType[] GetExportedTypes() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetExportedTypes
in classAssembly
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
-
SetCustomAttribute
public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
SetCustomAttribute
public void SetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
SetCustomAttribute
public void SetCustomAttribute(CustomAttributeBuilder customBuilder) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
-