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