public class PersistedAssemblyBuilder extends AssemblyBuilder
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Reflection.Emit.PersistedAssemblyBuilder
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.Reflection.Emit, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Reflection.Emit
|
static java.lang.String |
className
Qualified class name: System.Reflection.Emit.PersistedAssemblyBuilder
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
PersistedAssemblyBuilder() |
PersistedAssemblyBuilder(AssemblyName name,
Assembly coreAssembly,
IEnumerable_1 assemblyAttributes)
Initializes a new instance by invoking the .NET constructor.
|
PersistedAssemblyBuilder(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static PersistedAssemblyBuilder |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into PersistedAssemblyBuilder, a cast assert is made to check if types are compatible. |
MetadataBuilder |
GenerateMetadata(JCORefOut<BlobBuilder> ilStream,
JCORefOut<BlobBuilder> mappedFieldData)
Invokes the .NET member GenerateMetadata.
|
MetadataBuilder |
GenerateMetadata(JCORefOut<BlobBuilder> ilStream,
JCORefOut<BlobBuilder> mappedFieldData,
JCORefOut<MetadataBuilder> pdbBuilder)
Invokes the .NET member GenerateMetadata.
|
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. |
AssemblyName |
GetName(boolean copiedName)
Invokes the .NET member GetName.
|
void |
Save(Stream stream)
Invokes the .NET member Save.
|
void |
Save(java.lang.String assemblyFileName)
Invokes the .NET member Save.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
DefineDynamicAssembly, DefineDynamicAssembly, DefineDynamicModule, GetDynamicModule, GetExportedTypes, GetFile, GetFiles, GetManifestResourceInfo, GetManifestResourceNames, GetManifestResourceStream, GetManifestResourceStream, SetCustomAttribute, SetCustomAttribute, SetCustomAttributeaddModuleResolve, CreateInstance, CreateInstance, CreateInstance, CreateQualifiedName, GetAssembly, GetCallingAssembly, getCodeBase, getCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributesData, getDefinedTypes, GetEntryAssembly, getEntryPoint, getEscapedCodeBase, GetExecutingAssembly, getExportedTypes, GetFiles, GetForwardedTypes, getFullName, getGlobalAssemblyCache, getHostContext, getImageRuntimeVersion, getIsCollectible, getIsDynamic, getIsFullyTrusted, GetLoadedModules, GetLoadedModules, getLocation, getManifestModule, GetModule, getModules, GetModules, GetModules, 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, UnsafeLoadFrompublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public PersistedAssemblyBuilder()
throws java.lang.Throwable
java.lang.Throwablepublic PersistedAssemblyBuilder(AssemblyName name, Assembly coreAssembly, IEnumerable_1 assemblyAttributes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, ImageFormatLimitationException
name - the argument of type AssemblyNamecoreAssembly - the argument of type AssemblyassemblyAttributes - the argument of type IEnumerable_1java.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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itImageFormatLimitationException - if the .NET member raises itpublic PersistedAssemblyBuilder(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 PersistedAssemblyBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into PersistedAssemblyBuilder, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPersistedAssemblyBuilder instancejava.lang.Throwable - in case of error during cast operationpublic MetadataBuilder GenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SecurityException, InvalidCastException, BadImageFormatException, KeyNotFoundException, NotImplementedException
ilStream - the argument of type JCORefOut<BlobBuilder>mappedFieldData - the argument of type JCORefOut<BlobBuilder>java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSecurityException - if the .NET member raises itInvalidCastException - if the .NET member raises itBadImageFormatException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic MetadataBuilder GenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData, JCORefOut<MetadataBuilder> pdbBuilder) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SecurityException, InvalidCastException, BadImageFormatException, KeyNotFoundException, NotImplementedException
ilStream - the argument of type JCORefOut<BlobBuilder>mappedFieldData - the argument of type JCORefOut<BlobBuilder>pdbBuilder - the argument of type JCORefOut<MetadataBuilder>java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSecurityException - if the .NET member raises itInvalidCastException - if the .NET member raises itBadImageFormatException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class AssemblyBuilderpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class AssemblyBuilderpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class AssemblyBuildernull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class AssemblyBuilderpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class AssemblyBuilderpublic AssemblyName GetName(boolean copiedName) throws java.lang.Throwable, PlatformNotSupportedException
GetName in class AssemblycopiedName - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itpublic void Save(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SecurityException, InvalidCastException, BadImageFormatException, KeyNotFoundException, NotImplementedException, CultureNotFoundException
stream - the argument of type Streamjava.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 itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSecurityException - if the .NET member raises itInvalidCastException - if the .NET member raises itBadImageFormatException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itNotImplementedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic void Save(java.lang.String assemblyFileName)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentNullException,
OutOfMemoryException,
SerializationException,
IndexOutOfRangeException,
SecurityException,
InvalidCastException,
BadImageFormatException,
KeyNotFoundException,
NotImplementedException,
CultureNotFoundException
assemblyFileName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - 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 itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSerializationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itSecurityException - if the .NET member raises itInvalidCastException - if the .NET member raises itBadImageFormatException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itNotImplementedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class AssemblyBuilderinstance - the new underlying object