Package system.reflection
Class AssemblyName
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.AssemblyName
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class AssemblyName extends NetObject
The base .NET class managing System.Reflection.AssemblyName, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.AssemblyName
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=9.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.AssemblyNamestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description AssemblyName()
AssemblyName(java.lang.Object instance)
Internal constructor.AssemblyName(java.lang.String assemblyName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssemblyName
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoAssemblyName
, a cast assert is made to check if types are compatible.NetObject
Clone()
static AssemblyName
GetAssemblyName(java.lang.String assemblyFile)
java.lang.String
getCodeBase()
AssemblyContentType
getContentType()
CultureInfo
getCultureInfo()
java.lang.String
getCultureName()
java.lang.String
getEscapedCodeBase()
AssemblyNameFlags
getFlags()
java.lang.String
getFullName()
AssemblyHashAlgorithm
getHashAlgorithm()
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 TypeStrongNameKeyPair
getKeyPair()
java.lang.String
getName()
void
GetObjectData(SerializationInfo info, StreamingContext context)
ProcessorArchitecture
getProcessorArchitecture()
byte[]
GetPublicKey()
byte[]
GetPublicKeyToken()
Version
getVersion()
AssemblyVersionCompatibility
getVersionCompatibility()
void
OnDeserialization(NetObject sender)
static boolean
ReferenceMatchesDefinition(AssemblyName reference, AssemblyName definition)
void
setCodeBase(java.lang.String CodeBase)
void
setContentType(AssemblyContentType ContentType)
void
setCultureInfo(CultureInfo CultureInfo)
void
setCultureName(java.lang.String CultureName)
void
setFlags(AssemblyNameFlags Flags)
void
setHashAlgorithm(AssemblyHashAlgorithm HashAlgorithm)
void
setJCOInstance(JCObject instance)
void
setKeyPair(StrongNameKeyPair KeyPair)
void
setName(java.lang.String Name)
void
setProcessorArchitecture(ProcessorArchitecture ProcessorArchitecture)
void
SetPublicKey(byte[] publicKey)
void
SetPublicKey(JCORefOut dupParam0)
void
SetPublicKeyToken(byte[] publicKeyToken)
void
SetPublicKeyToken(JCORefOut dupParam0)
void
setVersion(Version Version)
void
setVersionCompatibility(AssemblyVersionCompatibility VersionCompatibility)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.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.AssemblyName- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AssemblyName
public AssemblyName(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
AssemblyName
public AssemblyName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
AssemblyName
public AssemblyName(java.lang.String assemblyName) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ArrayTypeMismatchException, FileLoadException
-
-
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 classNetObject
- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static AssemblyName cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoAssemblyName
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
AssemblyName
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ReferenceMatchesDefinition
public static boolean ReferenceMatchesDefinition(AssemblyName reference, AssemblyName definition) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
-
GetPublicKey
public byte[] GetPublicKey() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPublicKeyToken
public byte[] GetPublicKeyToken() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
-
Clone
public NetObject Clone() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
PlatformNotSupportedException
-
GetAssemblyName
public static AssemblyName GetAssemblyName(java.lang.String assemblyFile) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, TypeLoadException, IndexOutOfRangeException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException, FileLoadException, FileNotFoundException, NotSupportedException, MissingMethodException
-
GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
OnDeserialization
public void OnDeserialization(NetObject sender) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
SetPublicKey
public void SetPublicKey(byte[] publicKey) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetPublicKey
public void SetPublicKey(JCORefOut dupParam0) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetPublicKeyToken
public void SetPublicKeyToken(byte[] publicKeyToken) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetPublicKeyToken
public void SetPublicKeyToken(JCORefOut dupParam0) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHashAlgorithm
public AssemblyHashAlgorithm getHashAlgorithm() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHashAlgorithm
public void setHashAlgorithm(AssemblyHashAlgorithm HashAlgorithm) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getVersionCompatibility
public AssemblyVersionCompatibility getVersionCompatibility() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setVersionCompatibility
public void setVersionCompatibility(AssemblyVersionCompatibility VersionCompatibility) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCultureInfo
public CultureInfo getCultureInfo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCultureInfo
public void setCultureInfo(CultureInfo CultureInfo) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getContentType
public AssemblyContentType getContentType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setContentType
public void setContentType(AssemblyContentType ContentType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFlags
public AssemblyNameFlags getFlags() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setFlags
public void setFlags(AssemblyNameFlags Flags) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getProcessorArchitecture
public ProcessorArchitecture getProcessorArchitecture() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setProcessorArchitecture
public void setProcessorArchitecture(ProcessorArchitecture ProcessorArchitecture) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getKeyPair
public StrongNameKeyPair getKeyPair() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
setKeyPair
public void setKeyPair(StrongNameKeyPair KeyPair) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
getCodeBase
public java.lang.String getCodeBase() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCodeBase
public void setCodeBase(java.lang.String CodeBase) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCultureName
public java.lang.String getCultureName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCultureName
public void setCultureName(java.lang.String CultureName) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException
-
getEscapedCodeBase
public java.lang.String getEscapedCodeBase() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
getFullName
public java.lang.String getFullName() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
-
getName
public java.lang.String getName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setName
public void setName(java.lang.String Name) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getVersion
public Version getVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setVersion
public void setVersion(Version Version) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-