|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.jcc.PythonVM
public class PythonVM
| Field Summary | |
|---|---|
protected static PythonVM |
vm
|
| Constructor Summary | |
|---|---|
protected |
PythonVM()
|
| Method Summary | |
|---|---|
int |
acquireThreadState()
Bump the Python thread state counter. |
static PythonVM |
get()
Obtain the PythonVM instance, or null if the Python VM has not yet been started. |
protected void |
init(java.lang.String programName,
java.lang.String[] args)
|
java.lang.Object |
instantiate(java.lang.String moduleName,
java.lang.String className)
Instantiate the specified Python class, and return the instance. |
int |
releaseThreadState()
Release the Python thread state counter. |
static PythonVM |
start(java.lang.String programName)
Start the embedded Python interpreter. |
static PythonVM |
start(java.lang.String programName,
java.lang.String[] args)
Start the embedded Python interpreter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static PythonVM vm
| Constructor Detail |
|---|
protected PythonVM()
| Method Detail |
|---|
public static PythonVM start(java.lang.String programName,
java.lang.String[] args)
programName - the name of the Python program, typically
/usr/bin/python. This is informational; the program is not
actually executed.args - additional arguments to be put into sys.argv.
public static PythonVM start(java.lang.String programName)
programName - the name of the Python program, typically
/usr/bin/python. This is informational; the program is not
actually executed.
public static PythonVM get()
protected void init(java.lang.String programName,
java.lang.String[] args)
public java.lang.Object instantiate(java.lang.String moduleName,
java.lang.String className)
throws PythonException
moduleName - the Python module the class is defined inclassName - the Python class to instantiate.
PythonExceptionpublic int acquireThreadState()
public int releaseThreadState()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||