public class BytecodeLoader
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
BytecodeLoader.Loader |
Constructor | Description |
---|---|
BytecodeLoader() |
Modifier and Type | Method | Description |
---|---|---|
static void |
fixPyBytecode(java.lang.Class<? extends ContainsPyBytecode> c) |
This method looks for Python-Bytecode stored in String literals.
|
static java.lang.Class<?> |
makeClass(java.lang.String name,
byte[] data,
java.lang.Class<?>... referents) |
Turn the java byte code in data into a java class.
|
static java.lang.Class<?> |
makeClass(java.lang.String name,
java.util.List<java.lang.Class<?>> 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, byte[] data, java.lang.Class<?>... referents)
name
- the name of the classdata
- the java byte code.referents
- superclasses and interfaces that the new class will reference.public static java.lang.Class<?> makeClass(java.lang.String name, java.util.List<java.lang.Class<?>> referents, byte[] data)
name
- the name of the classreferents
- superclasses and interfaces that the new class will reference.data
- the java byte code.public static void fixPyBytecode(java.lang.Class<? extends ContainsPyBytecode> c) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException, java.io.IOException, java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException
java.io.IOException
java.lang.ClassNotFoundException
public static PyCode makeCode(java.lang.String name, byte[] data, java.lang.String filename)
name
- the name of the classdata
- the java byte code.