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.String
assemblyFullName
Fully assembly qualified name: System.Reflection.Emit, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Reflection.Emitstatic java.lang.String
className
Qualified class name: System.Reflection.Emit.PersistedAssemblyBuilderstatic JCType
classType
The 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 PersistedAssemblyBuilder
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPersistedAssemblyBuilder
, a cast assert is made to check if types are compatible.MetadataBuilder
GenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData)
MetadataBuilder
GenerateMetadata(JCORefOut<BlobBuilder> ilStream, JCORefOut<BlobBuilder> mappedFieldData, JCORefOut<MetadataBuilder> pdbBuilder)
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 TypeAssemblyName
GetName(boolean copiedName)
void
Save(java.lang.String assemblyFileName)
void
Save(Stream stream)
void
setJCOInstance(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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classAssemblyBuilder
- 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 classAssemblyBuilder
- 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 classAssemblyBuilder
- 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 classAssemblyBuilder
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classAssemblyBuilder
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classAssemblyBuilder
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PersistedAssemblyBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPersistedAssemblyBuilder
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PersistedAssemblyBuilder
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetName
public AssemblyName GetName(boolean copiedName) throws java.lang.Throwable, PlatformNotSupportedException
- Overrides:
GetName
in classAssembly
- Throws:
java.lang.Throwable
PlatformNotSupportedException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
SecurityException
InvalidCastException
BadImageFormatException
KeyNotFoundException
NotImplementedException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
SecurityException
InvalidCastException
BadImageFormatException
KeyNotFoundException
NotImplementedException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
IndexOutOfRangeException
SecurityException
ArrayTypeMismatchException
InvalidCastException
BadImageFormatException
KeyNotFoundException
NotImplementedException
CultureNotFoundException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
SerializationException
IndexOutOfRangeException
SecurityException
InvalidCastException
BadImageFormatException
KeyNotFoundException
NotImplementedException
CultureNotFoundException
-
-