public class BytecodeLoader
extends java.lang.Object
Constructor | Description |
---|---|
BytecodeLoader() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.Class |
makeClass(java.lang.String name,
java.util.Vector referents,
byte[] data) |
Turn the java byte code in data into a java class.
|
static PyCode |
makeCode(java.lang.String name,
byte[] data,
java.lang.String filename) |
Turn the java byte code for a compiled python module into a java class.
|
public static java.lang.Class makeClass(java.lang.String name, java.util.Vector referents, byte[] data)
name
- the name of the classreferents
- a list of superclass and interfaces that the new class
will reference.data
- the java byte code.public static PyCode makeCode(java.lang.String name, byte[] data, java.lang.String filename)
name
- the name of the classdata
- the java byte code.