org.python.core.TraverseprocDerived Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-slim Show documentation
Show all versions of jython-slim 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;
/**
* This is used like {@link org.python.core.Traverseproc},
* but traverses only the {@code slots[]}-array of
* {@code fooDerived}-classes. This way we avoid that the traverse
* method of a traversable {@link org.python.core.PyObject} is
* overridden by the derived version.
* {@link org.python.modules.gc#traverse(PyObject, Visitproc, Object)} takes care of
* exploiting both traverse methods.
*/
public interface TraverseprocDerived {
/**
* Traverses all reachable {@code PyObject}s.
* Like in CPython, {@code arg} must be passed
* unmodified to {@code visit} as its second parameter.
*/
public int traverseDerived(Visitproc visit, Object arg);
}