public class NetObject extends java.lang.Object implements IJCOBridgeReflected
IJCOBridgeReflected| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Full name of the assembly that contains
System.Object. |
static java.lang.String |
assemblyShortName
Short name of the assembly that contains
System.Object. |
static java.lang.String |
className
Full name of the .NET type managed by this class.
|
static JCType |
classType
The
JCType of the .NET type managed by this class, or null if it cannot be created. |
static NetObject |
Null
A shared instance without an underlying .NET object.
|
| Constructor and Description |
|---|
NetObject()
Initializes a new
NetObject without an underlying .NET object. |
NetObject(java.lang.Object instance)
Initializes a new
NetObject using the given instance. |
| Modifier and Type | Method and Description |
|---|---|
static NetObject |
cast(IJCOBridgeReflected from)
Casts a reflected object to
NetObject. |
boolean |
Equals(IJCOBridgeReflected other)
Determines whether the underlying instance is equal to the one of another object.
|
static boolean |
Equals(IJCOBridgeReflected first,
IJCOBridgeReflected other)
Determines whether the underlying instances of two objects are equal.
|
int |
GetHashCode()
Returns the hash code of the underlying instance.
|
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. |
NetType |
GetType()
Returns the .NET type of the underlying instance, or the type managed by this class if there is none.
|
int |
hashCode() |
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
java.lang.String |
toString() |
java.lang.String |
ToString()
Returns the string representation of the underlying instance.
|
public static final java.lang.String assemblyFullName
System.Object.public static final java.lang.String assemblyShortName
System.Object.public static final java.lang.String className
public static JCType classType
JCType of the .NET type managed by this class, or null if it cannot be created.public static final NetObject Null
public NetObject()
NetObject without an underlying .NET object.public NetObject(java.lang.Object instance)
NetObject using the given instance.instance - a reflected object, whose underlying JCObject is shared, or any other object accepted by the bridge, such as a boxed native valuepublic static NetObject cast(IJCOBridgeReflected from) throws java.lang.Throwable
NetObject.from - the object to castNetObject that shares the underlying instance of fromjava.lang.UnsupportedOperationException - if from cannot be cast to the .NET typejava.lang.Throwable - if the check made by the bridge failspublic boolean Equals(IJCOBridgeReflected other)
other - the object to compare withtrue if the underlying instances are equalpublic static boolean Equals(IJCOBridgeReflected first, IJCOBridgeReflected other)
first - the first objectother - the second objecttrue if the underlying instances are equalpublic int GetHashCode()
public java.lang.String getJCOAssemblyName()
getJCOAssemblyName in interface IJCOBridgeReflectedpublic java.lang.String getJCOClassName()
getJCOClassName in interface IJCOBridgeReflectedpublic java.lang.Object getJCOInstance()
getJCOInstance in interface IJCOBridgeReflectednull if there is nonepublic java.lang.String getJCOObjectName()
getJCOObjectName in interface IJCOBridgeReflectedpublic JCType getJCOType()
JCType of the .NET type.getJCOType in interface IJCOBridgeReflectedpublic NetType GetType() throws java.lang.Throwable
NetType of the objectjava.lang.Throwable - if the type cannot be obtained from the bridgepublic int hashCode()
hashCode in class java.lang.Objectpublic void setJCOInstance(JCObject instance)
instance - the new underlying objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String ToString()