|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.python.core.imp
Utility functions for "import" support.
Field Summary | |
static int |
APIVersion
|
Method Summary | |
static PyModule |
addModule(String name)
|
static byte[] |
compileSource(String name,
File file)
|
static byte[] |
compileSource(String name,
File file,
String filename,
String outFilename)
|
static ClassLoader |
getSyspathJavaLoader()
|
static PyObject |
import_name(String name,
boolean top,
PyObject modDict)
|
static void |
importAll(String mod,
PyFrame frame)
Called from jpython generated code when a statement like "from spam.eggs import *" is executed. |
static PyObject[] |
importFrom(String mod,
String[] names,
PyFrame frame)
Called from jpython generated code when a stamenet like "from spam.eggs import foo, bar" is executed. |
static PyObject[] |
importFromAs(String mod,
String[] names,
String[] asnames,
PyFrame frame)
Called from jpython generated code when a stamenet like "from spam.eggs import foo as spam" is executed. |
static PyObject |
importName(String name,
boolean top)
|
static PyObject |
importName(String name,
boolean top,
PyObject modDict)
|
static PyObject |
importOne(String mod,
PyFrame frame)
Called from jpython generated code when a statement like "import spam" is executed. |
static PyObject |
importOneAs(String mod,
PyFrame frame)
Called from jpython generated code when a statement like "import spam as foo" is executed. |
static PyObject |
load(String name)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int APIVersion
Method Detail |
public static PyModule addModule(String name)
public static byte[] compileSource(String name, File file)
public static byte[] compileSource(String name, File file, String filename, String outFilename)
public static ClassLoader getSyspathJavaLoader()
public static PyObject load(String name)
public static PyObject import_name(String name, boolean top, PyObject modDict)
public static PyObject importName(String name, boolean top)
public static PyObject importName(String name, boolean top, PyObject modDict)
public static PyObject importOne(String mod, PyFrame frame)
public static PyObject importOneAs(String mod, PyFrame frame)
public static PyObject[] importFrom(String mod, String[] names, PyFrame frame)
public static PyObject[] importFromAs(String mod, String[] names, String[] asnames, PyFrame frame)
public static void importAll(String mod, PyFrame frame)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |