org.python.core
Class BytecodeLoader
java.lang.Objectorg.python.core.BytecodeLoader
public class BytecodeLoader
extends java.lang.Object
Utility class for loading of compiled python modules and java classes defined
in python modules.
static Class | makeClass(String name, Vector referents, byte[] data)- Turn the java byte code in data into a java class.
|
static PyCode | makeCode(String name, byte[] data, String filename)- Turn the java byte code for a compiled python module into a java class.
|
makeClass
public static Class makeClass(String name,
Vector referents,
byte[] data) Turn the java byte code in data into a java class.
name - the name of the classreferents - a list of superclass and interfaces that the new class
will reference.data - the java byte code.
makeCode
public static PyCode makeCode(String name,
byte[] data,
String filename) Turn the java byte code for a compiled python module into a java class.
name - the name of the classdata - the java byte code.
Jython homepage