JuggerNET Runtime Library v3.6.54.0  3.6.54.0
Public Member Functions | Properties | List of all members
Codemesh.JuggerNET.JavaProxy Interface Reference

An interface implemented by every type that is a proxy type for a Java type. It provides an abstraction layer for getting/setting Java object handles and for getting a duplicated object handle for the same object. More...

Inheritance diagram for Codemesh.JuggerNET.JavaProxy:
Inheritance graph
[legend]
Collaboration diagram for Codemesh.JuggerNET.JavaProxy:
Collaboration graph
[legend]

Public Member Functions

void Release ()
 Releases the connection between this proxy instance and the Java object without freeing the Java object. More...
 
bool IsInstanceOf (JavaClass clazz)
 Returns true if the instance is type compatible with the given Java type. More...
 
bool IsSame (JavaProxy proxy)
 Returns true if the proxy instance wraps around the same Java object as the other proxy instance. More...
 

Properties

long JObject [get, set]
 A property representing the JNI object handle. More...
 
HandleRef Handle [get]
 A property representing the JNI object handle. More...
 
long JObjectDuplicate [get]
 A property representing a duplicated JNI object handle. More...
 

Detailed Description

An interface implemented by every type that is a proxy type for a Java type. It provides an abstraction layer for getting/setting Java object handles and for getting a duplicated object handle for the same object.

Member Function Documentation

◆ IsInstanceOf()

bool Codemesh.JuggerNET.JavaProxy.IsInstanceOf ( JavaClass  clazz)

Returns true if the instance is type compatible with the given Java type.

Parameters
clazzthe Java type.
Returns

Implemented in Codemesh.JuggerNET.JuggerNETProxyException, Codemesh.JuggerNET.JuggerNETProxyArray, and Codemesh.JuggerNET.JuggerNETProxyObject.

Referenced by Codemesh.JuggerNET.ReflectionPeerValueMarshaller.Unmarshal().

◆ IsSame()

bool Codemesh.JuggerNET.JavaProxy.IsSame ( JavaProxy  proxy)

Returns true if the proxy instance wraps around the same Java object as the other proxy instance.

Parameters
proxyThe other proxy instance.
Returns
True if the two proxies reference the same Java object.

Implemented in Codemesh.JuggerNET.JuggerNETProxyException, Codemesh.JuggerNET.JuggerNETProxyArray, and Codemesh.JuggerNET.JuggerNETProxyObject.

◆ Release()

void Codemesh.JuggerNET.JavaProxy.Release ( )

Releases the connection between this proxy instance and the Java object without freeing the Java object.

Implemented in Codemesh.JuggerNET.JuggerNETProxyObject, Codemesh.JuggerNET.JuggerNETProxyException, and Codemesh.JuggerNET.JuggerNETProxyArray.

Referenced by Codemesh.JuggerNET.JavaMethod.CallVoid().

Property Documentation

◆ Handle

HandleRef Codemesh.JuggerNET.JavaProxy.Handle
get

◆ JObject

long Codemesh.JuggerNET.JavaProxy.JObject
getset

◆ JObjectDuplicate

long Codemesh.JuggerNET.JavaProxy.JObjectDuplicate
get

A property representing a duplicated JNI object handle.


The documentation for this interface was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.