public final class JCAssembly extends JCHandler
JCAssembly wraps a native reference to a CLR System.Reflection.Assembly
and exposes type resolution against that assembly. Instances are obtained exclusively
via JCOBridge.AddReference(String) and must not be constructed directly.
Once an assembly handle is available, use GetType(String) to resolve CLR
types by their fully qualified name. The resolved JCType can then be used to
instantiate objects or invoke static members.
| Modifier and Type | Method and Description |
|---|---|
JCType |
GetType(String typeName)
Resolves a CLR type by its fully qualified name within this assembly and returns
a handle to it.
|
int |
hashCode()
Returns the hash code of the underlying CLR assembly by delegating to the
CLR
GetHashCode method. |
String |
toString()
Returns the string representation of the underlying CLR assembly by delegating
to the CLR
ToString method. |
getReferencepublic int hashCode()
GetHashCode method.public String toString()
ToString method. Typically returns the assembly full name,
e.g. "MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null".public JCType GetType(String typeName) throws JCNativeException
"MyNamespace.MyClass" or "MyNamespace.MyClass`1" for generics.typeName - the fully qualified CLR type name to resolve.JCType handle to the resolved type.JCNativeException - if the type cannot be found in this assembly or the
resolution fails within the CLR context.