public abstract class NativeObject
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
NativeObject(long I64_NativeRef)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
createdFromNative(NativeObject CLI_Object)
To be called by native created objects.
|
void |
dontFinalize()
Call this method for Java objects which native objects should not be destroyed from Java code
on finalization.
|
protected void |
finalize()
Destructor.
|
static void |
forget(NativeObject CLI_NativeObject)
Java instances to be forgotten (native object can now be destroyed)
should be dereferenced with this method.
|
boolean |
getbDoFinalize()
Accessor to be used in order to know whether the native instance instance should be destroyed or not.
|
long |
getNativeRef()
Native reference accessor.
|
static NativeObject |
getObject(long I64_NativeRef)
Find the Java instance from its native instance reference.
|
static void |
remember(NativeObject CLI_NativeObject)
Java instances to be remembered for native object consistency
should be referenced with this method.
|
protected NativeObject(long I64_NativeRef)
I64_NativeRef
- Native instance reference corresponding to this Java instance.protected static final void createdFromNative(NativeObject CLI_Object)
CLI_Object
- Object created.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public final long getNativeRef()
public final boolean getbDoFinalize()
public final void dontFinalize()
public static final void remember(NativeObject CLI_NativeObject)
CLI_NativeObject
- Instance to remember.public static final void forget(NativeObject CLI_NativeObject)
CLI_NativeObject
- Instance to forget.public static NativeObject getObject(long I64_NativeRef)
I64_NativeRef
- Native instance reference corresponding to the searched Java instance.