public class BytecodeLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BytecodeLoader.Loader |
Constructor and Description |
---|
BytecodeLoader() |
Modifier and Type | Method and Description |
---|---|
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 PyCode makeCode(java.lang.String name, byte[] data, java.lang.String filename)
name
- the name of the classdata
- the java byte code.