public class AssemblyBuilder extends Assembly
.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
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Reflection.Emit.AssemblyBuilder
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
AssemblyBuilder() |
AssemblyBuilder(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AddResourceFile(java.lang.String name,
java.lang.String fileName) |
void |
AddResourceFile(java.lang.String name,
java.lang.String fileName,
ResourceAttributes attribute) |
static AssemblyBuilder |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into AssemblyBuilder, 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 |
DefineDynamicModule(java.lang.String name,
boolean emitSymbolInfo) |
ModuleBuilder |
DefineDynamicModule(java.lang.String name,
java.lang.String fileName) |
ModuleBuilder |
DefineDynamicModule(java.lang.String name,
java.lang.String fileName,
boolean emitSymbolInfo) |
IResourceWriter |
DefineResource(java.lang.String name,
java.lang.String description,
java.lang.String fileName) |
IResourceWriter |
DefineResource(java.lang.String name,
java.lang.String description,
java.lang.String fileName,
ResourceAttributes attribute) |
void |
DefineUnmanagedResource(byte[] resource) |
void |
DefineUnmanagedResource(JCORefOut dupParam0) |
void |
DefineUnmanagedResource(java.lang.String resourceFileName) |
void |
DefineVersionInfoResource() |
void |
DefineVersionInfoResource(java.lang.String product,
java.lang.String productVersion,
java.lang.String company,
java.lang.String copyright,
java.lang.String trademark) |
NetObject[] |
GetCustomAttributes(boolean inherit) |
NetObject[] |
GetCustomAttributes(NetType attributeType,
boolean inherit) |
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 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
|
Module[] |
GetLoadedModules(boolean getResourceModules) |
ManifestResourceInfo |
GetManifestResourceInfo(java.lang.String resourceName) |
java.lang.String[] |
GetManifestResourceNames() |
Stream |
GetManifestResourceStream(NetType type,
java.lang.String name) |
Stream |
GetManifestResourceStream(java.lang.String name) |
Module |
GetModule(java.lang.String name) |
Module[] |
GetModules(boolean getResourceModules) |
AssemblyName |
GetName(boolean copiedName) |
AssemblyName[] |
GetReferencedAssemblies() |
Assembly |
GetSatelliteAssembly(CultureInfo culture) |
Assembly |
GetSatelliteAssembly(CultureInfo culture,
Version version) |
NetType |
GetType(java.lang.String name,
boolean throwOnError,
boolean ignoreCase) |
boolean |
IsDefined(NetType attributeType,
boolean inherit) |
void |
Save(java.lang.String assemblyFileName) |
void |
Save(java.lang.String assemblyFileName,
PortableExecutableKinds portableExecutableKind,
ImageFileMachine imageFileMachine) |
void |
SetCustomAttribute(ConstructorInfo con,
byte[] binaryAttribute) |
void |
SetCustomAttribute(ConstructorInfo dupParam0,
JCORefOut dupParam1) |
void |
SetCustomAttribute(CustomAttributeBuilder customBuilder) |
void |
SetEntryPoint(MethodInfo entryMethod) |
void |
SetEntryPoint(MethodInfo entryMethod,
PEFileKinds fileKind) |
void |
setJCOInstance(JCObject instance) |
addModuleResolve, CreateInstance, CreateInstance, CreateInstance, CreateQualifiedName, GetAssembly, GetCallingAssembly, getCodeBase, GetEntryAssembly, getEntryPoint, getEscapedCodeBase, getEvidence, GetExecutingAssembly, GetFiles, getFullName, getGlobalAssemblyCache, getHostContext, getImageRuntimeVersion, getIsDynamic, getIsFullyTrusted, GetLoadedModules, getLocation, getManifestModule, GetModules, GetName, GetObjectData, getPermissionSet, getReflectionOnly, getSecurityRuleSet, GetType, GetType, GetTypes, Load, Load, Load, Load, Load, Load, Load, Load, Load, Load, Load, Load, LoadFile, LoadFile, LoadFrom, LoadFrom, LoadFrom, LoadFrom, LoadFrom, LoadFrom, LoadModule, LoadModule, LoadModule, LoadModule, LoadWithPartialName, LoadWithPartialName, ReflectionOnlyLoad, ReflectionOnlyLoad, ReflectionOnlyLoad, ReflectionOnlyLoadFrom, removeModuleResolve, UnsafeLoadFrompublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public AssemblyBuilder()
throws java.lang.Throwable
java.lang.Throwablepublic AssemblyBuilder(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void AddResourceFile(java.lang.String name,
java.lang.String fileName)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NullReferenceException,
IndexOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNullReferenceExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic void AddResourceFile(java.lang.String name,
java.lang.String fileName,
ResourceAttributes attribute)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NullReferenceException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNullReferenceExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionpublic static AssemblyBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into AssemblyBuilder, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAssemblyBuilder instancejava.lang.Throwable - in case of error during cast operationpublic static AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentException, ArgumentNullException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NotImplementedException
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotImplementedExceptionpublic ModuleBuilder DefineDynamicModule(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException, InvalidOperationException, FormatException, NotSupportedException, TypeLoadException, SecurityException, MissingMethodException, TargetInvocationException
public ModuleBuilder DefineDynamicModule(java.lang.String name, boolean emitSymbolInfo) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException, InvalidOperationException, FormatException, NotSupportedException, TypeLoadException, SecurityException, MissingMethodException, TargetInvocationException
public ModuleBuilder DefineDynamicModule(java.lang.String name, java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, TypeLoadException, SecurityException
public ModuleBuilder DefineDynamicModule(java.lang.String name, java.lang.String fileName, boolean emitSymbolInfo) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, TypeLoadException, SecurityException
public IResourceWriter DefineResource(java.lang.String name, java.lang.String description, java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNullReferenceExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionpublic IResourceWriter DefineResource(java.lang.String name, java.lang.String description, java.lang.String fileName, ResourceAttributes attribute) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNullReferenceExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionSecurityExceptionpublic void DefineUnmanagedResource(byte[] resource)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic void DefineUnmanagedResource(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic void DefineUnmanagedResource(java.lang.String resourceFileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionpublic void DefineVersionInfoResource()
throws java.lang.Throwable,
ArgumentException
java.lang.ThrowableArgumentExceptionpublic void DefineVersionInfoResource(java.lang.String product,
java.lang.String productVersion,
java.lang.String company,
java.lang.String copyright,
java.lang.String trademark)
throws java.lang.Throwable,
ArgumentException
java.lang.ThrowableArgumentExceptionpublic NetObject[] GetCustomAttributes(boolean inherit) throws java.lang.Throwable, NotImplementedException
GetCustomAttributes in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic NetObject[] GetCustomAttributes(NetType attributeType, boolean inherit) throws java.lang.Throwable, NotImplementedException
GetCustomAttributes in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic ModuleBuilder GetDynamicModule(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNullReferenceExceptionpublic NetType[] GetExportedTypes() throws java.lang.Throwable, NotImplementedException
GetExportedTypes in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic FileStream GetFile(java.lang.String name) throws java.lang.Throwable, NotImplementedException
GetFile in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic FileStream[] GetFiles(boolean getResourceModules) throws java.lang.Throwable, NotImplementedException
GetFiles in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class AssemblyString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class AssemblyString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class AssemblyObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class AssemblyString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class AssemblyJCType representing the CLR Type of the instantiated Classpublic Module[] GetLoadedModules(boolean getResourceModules) throws java.lang.Throwable, NotImplementedException
GetLoadedModules in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic ManifestResourceInfo GetManifestResourceInfo(java.lang.String resourceName) throws java.lang.Throwable, NotImplementedException
GetManifestResourceInfo in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic java.lang.String[] GetManifestResourceNames()
throws java.lang.Throwable,
NotImplementedException
GetManifestResourceNames in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic Stream GetManifestResourceStream(NetType type, java.lang.String name) throws java.lang.Throwable, NotImplementedException
GetManifestResourceStream in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic Stream GetManifestResourceStream(java.lang.String name) throws java.lang.Throwable, NotImplementedException
GetManifestResourceStream in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic Module GetModule(java.lang.String name) throws java.lang.Throwable, NotImplementedException
GetModule in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic Module[] GetModules(boolean getResourceModules) throws java.lang.Throwable, NotImplementedException
GetModules in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic AssemblyName GetName(boolean copiedName) throws java.lang.Throwable, NotImplementedException
GetName in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic AssemblyName[] GetReferencedAssemblies() throws java.lang.Throwable, NotImplementedException
GetReferencedAssemblies in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic Assembly GetSatelliteAssembly(CultureInfo culture) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotImplementedException, ArgumentException, CultureNotFoundException, NotSupportedException, FormatException, FileNotFoundException
GetSatelliteAssembly in class Assemblyjava.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionNotImplementedExceptionArgumentExceptionCultureNotFoundExceptionNotSupportedExceptionFormatExceptionFileNotFoundExceptionpublic Assembly GetSatelliteAssembly(CultureInfo culture, Version version) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotImplementedException, ArgumentException, CultureNotFoundException, NotSupportedException, FormatException, FileNotFoundException
GetSatelliteAssembly in class Assemblyjava.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionNotImplementedExceptionArgumentExceptionCultureNotFoundExceptionNotSupportedExceptionFormatExceptionFileNotFoundExceptionpublic NetType GetType(java.lang.String name, boolean throwOnError, boolean ignoreCase) throws java.lang.Throwable, NotImplementedException
GetType in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic boolean IsDefined(NetType attributeType, boolean inherit) throws java.lang.Throwable, NotImplementedException
IsDefined in class Assemblyjava.lang.ThrowableNotImplementedExceptionpublic void Save(java.lang.String assemblyFileName)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
FormatException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
IndexOutOfRangeException,
NotImplementedException,
SecurityException,
RankException,
InvalidCastException,
ObjectDisposedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotImplementedExceptionSecurityExceptionRankExceptionInvalidCastExceptionObjectDisposedExceptionpublic void Save(java.lang.String assemblyFileName,
PortableExecutableKinds portableExecutableKind,
ImageFileMachine imageFileMachine)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
OutOfMemoryException,
FormatException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
IndexOutOfRangeException,
NotImplementedException,
SecurityException,
RankException,
InvalidCastException,
ObjectDisposedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionFormatExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotImplementedExceptionSecurityExceptionRankExceptionInvalidCastExceptionObjectDisposedExceptionpublic void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, MissingMethodException, FormatException
public void SetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, MissingMethodException, FormatException
public void SetCustomAttribute(CustomAttributeBuilder customBuilder) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, FormatException
public void SetEntryPoint(MethodInfo entryMethod) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
public void SetEntryPoint(MethodInfo entryMethod, PEFileKinds fileKind) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, MissingMethodException, FormatException
public void setJCOInstance(JCObject instance)
setJCOInstance in class Assembly