All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.python.core.TraverseprocDerived Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.7.4
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy