PyObjects, read the documentation of
org.python.core.finalization.FinalizablePyObject .
| Modifier and Type | Field and Description |
|---|---|
| public static FinalizeTriggerFactory | factory
This factory hook is reserved for use by JyNI. |
| public static final byte | FINALIZED_FLAG
Indicates that this trigger was already finalized. |
| public byte | |
| public static final byte | NOT_FINALIZABLE_FLAG
Indicates that the underlying PyObject was never intended to be finalized. |
| public static final byte | NOTIFY_GC_FLAG
This flag tells the finalize trigger to call
|
| public static final byte | ONLY_BUILTIN_FLAG
Indicates that only
|
| protected PyObject |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public void | |
| public static void | |
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| public static boolean | |
| public boolean | |
| protected boolean | |
| public static boolean | |
| public boolean | |
| protected boolean | |
| public static FinalizeTrigger | |
| public void | |
| public static void | |
| public static void | |
| public void |
| factory | back to summary |
|---|---|
| public static FinalizeTriggerFactory factory This factory hook is reserved for use by JyNI.
It allows to replace the default | |
| FINALIZED_FLAG | back to summary |
|---|---|
| public static final byte FINALIZED_FLAG Indicates that this trigger was already finalized. | |
| flags | back to summary |
|---|---|
| public byte flags | |
| NOT_FINALIZABLE_FLAG | back to summary |
|---|---|
| public static final byte NOT_FINALIZABLE_FLAG Indicates that the underlying PyObject was never intended to be finalized.
It is actually not finalizable and the trigger only exists to notify
| |
| NOTIFY_GC_FLAG | back to summary |
|---|---|
| public static final byte NOTIFY_GC_FLAG This flag tells the finalize trigger to call
| |
| ONLY_BUILTIN_FLAG | back to summary |
|---|---|
| public static final byte ONLY_BUILTIN_FLAG Indicates that only
| |
| toFinalize | back to summary |
|---|---|
| protected PyObject toFinalize | |
| FinalizeTrigger | back to summary |
|---|---|
| protected FinalizeTrigger(PyObject toFinalize) | |
| appendFinalizeTriggerForBuiltin | back to summary |
|---|---|
| public static void appendFinalizeTriggerForBuiltin(PyObject obj) | |
| clear | back to summary |
|---|---|
| public void clear() | |
| ensureFinalizer | back to summary |
|---|---|
| public static void ensureFinalizer(PyObject resurrect) Recreates the | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the
| |
| hasActiveTrigger | back to summary |
|---|---|
| public static boolean hasActiveTrigger(PyObject obj) | |
| isActive | back to summary |
|---|---|
| public boolean isActive() | |
| isCyclic | back to summary |
|---|---|
| protected boolean isCyclic() | |
| isFinalizable | back to summary |
|---|---|
| public static boolean isFinalizable(PyObject obj) | |
| isFinalized | back to summary |
|---|---|
| public boolean isFinalized() | |
| isUncollectable | back to summary |
|---|---|
| protected boolean isUncollectable() | |
| makeTrigger | back to summary |
|---|---|
| public static FinalizeTrigger makeTrigger(PyObject toFinalize) | |
| performFinalization | back to summary |
|---|---|
| public void performFinalization() | |
| runFinalizer | back to summary |
|---|---|
| public static void runFinalizer(PyObject toFinalize) | |
| runFinalizer | back to summary |
|---|---|
| public static void runFinalizer(PyObject toFinalize, boolean runBuiltinOnly) | |
| trigger | back to summary |
|---|---|
| public void trigger(PyObject toFinalize) | |