Package system.reflection.emit
Class PersistedAssemblyBuilder
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.Assembly
-
- system.reflection.emit.AssemblyBuilder
-
- system.reflection.emit.PersistedAssemblyBuilder
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class PersistedAssemblyBuilder extends AssemblyBuilder
The base .NET class managing System.Reflection.Emit.PersistedAssemblyBuilder, System.Reflection.Emit, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Emit.PersistedAssemblyBuilder
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.StringassemblyFullNameFully assembly qualified name: System.Reflection.Emit, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Reflection.Emitstatic java.lang.StringclassNameQualified class name: System.Reflection.Emit.PersistedAssemblyBuilderstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PersistedAssemblyBuilder()PersistedAssemblyBuilder(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PersistedAssemblyBuildercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPersistedAssemblyBuilder, a cast assert is made to check if types are compatible.MetadataBuilderGenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData)MetadataBuilderGenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData, JCORefOut<MetadataBuilder> pdbBuilder)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeAssemblyNameGetName(boolean copiedName)voidSave(java.lang.String assemblyFileName)voidSave(Stream stream)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.reflection.emit.AssemblyBuilder
DefineDynamicAssembly, DefineDynamicModule, GetDynamicModule, GetExportedTypes, GetFile, GetFiles, GetManifestResourceInfo, GetManifestResourceNames, GetManifestResourceStream, GetManifestResourceStream, SetCustomAttribute, SetCustomAttribute, SetCustomAttribute
-
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, 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.Reflection.Emit, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Reflection.Emit- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.Emit.PersistedAssemblyBuilder- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistedAssemblyBuilder
public PersistedAssemblyBuilder(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
PersistedAssemblyBuilder
public PersistedAssemblyBuilder() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classAssemblyBuilder- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classAssemblyBuilder- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classAssemblyBuilder- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classAssemblyBuilder- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classAssemblyBuilder
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classAssemblyBuilder- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static PersistedAssemblyBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPersistedAssemblyBuilder, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PersistedAssemblyBuilderinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetName
public AssemblyName GetName(boolean copiedName) throws java.lang.Throwable, PlatformNotSupportedException
- Overrides:
GetNamein classAssembly- Throws:
java.lang.ThrowablePlatformNotSupportedException
-
GenerateMetadata
public MetadataBuilder GenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData, JCORefOut<MetadataBuilder> pdbBuilder) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SecurityException, InvalidCastException, BadImageFormatException, KeyNotFoundException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionSecurityExceptionInvalidCastExceptionBadImageFormatExceptionKeyNotFoundExceptionNotImplementedException
-
GenerateMetadata
public MetadataBuilder GenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, SecurityException, InvalidCastException, BadImageFormatException, KeyNotFoundException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionSecurityExceptionInvalidCastExceptionBadImageFormatExceptionKeyNotFoundExceptionNotImplementedException
-
Save
public void Save(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, SecurityException, ArrayTypeMismatchException, InvalidCastException, BadImageFormatException, KeyNotFoundException, NotImplementedException, CultureNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionArrayTypeMismatchExceptionInvalidCastExceptionBadImageFormatExceptionKeyNotFoundExceptionNotImplementedExceptionCultureNotFoundException
-
Save
public void Save(java.lang.String assemblyFileName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, SerializationException, IndexOutOfRangeException, SecurityException, InvalidCastException, BadImageFormatException, KeyNotFoundException, NotImplementedException, CultureNotFoundException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionSerializationExceptionIndexOutOfRangeExceptionSecurityExceptionInvalidCastExceptionBadImageFormatExceptionKeyNotFoundExceptionNotImplementedExceptionCultureNotFoundException
-
-