src.org.python.modules.jffi.NativeDataConverter 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.modules.jffi;
import org.python.core.PyObject;
abstract public class NativeDataConverter {
private final boolean referenceRequired;
private final boolean postInvokeRequired;
public NativeDataConverter() {
this.referenceRequired = false;
this.postInvokeRequired = false;
}
public NativeDataConverter(boolean referenceRequired, boolean postInvokeRequired) {
this.referenceRequired = referenceRequired;
this.postInvokeRequired = postInvokeRequired;
}
public final boolean isReferenceRequired() {
return referenceRequired;
}
public final boolean isPostInvokeRequired() {
return postInvokeRequired;
}
abstract public PyObject fromNative(PyObject obj);
abstract public PyObject toNative(PyObject obj);
abstract public NativeType nativeType();
}