src.org.python.core.finalization.FinalizablePyObjectDerived Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython Show documentation
Show all versions of jython Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
package org.python.core.finalization;
/**
* This interface should never be used directly in any hand-written code
* (except in FinalizeTrigger.java).
* It should only appear in automatically generated {@code fooDerived}-classes.
*
* To use finalizers in hand-written classes read the instructions at
* {@link org.python.core.finalization.FinalizablePyObject}.
*
*/
public interface FinalizablePyObjectDerived {
/**
* {@code __del_builtin__} is the built-in's own finalizer, while
* {@code __del_derived__} refers to an instance's in-dict {@code __del__}.
* A FinalizeTrigger calls {@code __del_derived__} first and
* - if existent - {@code __del_builtin__} after that. A plain {@code __del__}
* would behave as overridden by {@code __del_derived__}, i.e. won't be called
* if the type implements {@code FinalizablePyObjectDerived} while
* {@code __del_builtin__} is called in any case.
*/
public void __del_derived__();
}