public final class CodeLoader extends Object
Modifier and Type | Field and Description |
---|---|
String |
filename |
static String |
GET_BOOTSTRAP_METHOD_NAME |
String |
name |
static String |
SIMPLE_FACTORY_METHOD_NAME |
Modifier and Type | Method and Description |
---|---|
static boolean |
canLoad(Class<?> cls) |
static CodeBootstrap |
createSimpleBootstrap(PyCode code) |
static PyCode |
loadCode(Class<?> cls) |
static PyCode |
loadCode(Class<?> cls,
String name,
String filename) |
static PyCode |
loadCode(CodeBootstrap bootstrap) |
static PyCode |
loadCode(CodeBootstrap bootstrap,
String name,
String filename) |
public static final String GET_BOOTSTRAP_METHOD_NAME
public final String name
public final String filename
public static final String SIMPLE_FACTORY_METHOD_NAME
public static boolean canLoad(Class<?> cls)
public static PyCode loadCode(Class<?> cls, String name, String filename) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
public static PyCode loadCode(Class<?> cls) throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public static PyCode loadCode(CodeBootstrap bootstrap, String name, String filename)
public static PyCode loadCode(CodeBootstrap bootstrap)
public static CodeBootstrap createSimpleBootstrap(PyCode code)