public class InteractiveInterpreter extends PythonInterpreter
Modifier and Type | Field and Description |
---|---|
java.lang.StringBuffer |
buffer |
java.lang.String |
filename |
Constructor and Description |
---|
InteractiveInterpreter() |
InteractiveInterpreter(PyObject locals) |
InteractiveInterpreter(PyObject locals,
PySystemState systemState) |
Modifier and Type | Method and Description |
---|---|
void |
interrupt(ThreadState ts)
Pause the current code, sneak an exception raiser into
sys.trace_func, and then continue the code hoping that Jython will
get control to do the break;
|
void |
resetbuffer() |
void |
runcode(PyObject code)
execute a code object.
|
boolean |
runsource(java.lang.String source)
Compile and run some source in the interpreter.
|
boolean |
runsource(java.lang.String source,
java.lang.String filename) |
boolean |
runsource(java.lang.String source,
java.lang.String filename,
CompileMode kind) |
void |
showexception(PyException exc) |
void |
write(java.lang.String data) |
cleanup, compile, compile, compile, compile, eval, eval, exec, exec, execfile, execfile, execfile, get, get, getLocals, getSystemState, initialize, set, set, setErr, setErr, setErr, setIn, setIn, setIn, setLocals, setOut, setOut, setOut, threadLocalStateInterpreter
public InteractiveInterpreter()
public InteractiveInterpreter(PyObject locals)
public InteractiveInterpreter(PyObject locals, PySystemState systemState)
public boolean runsource(java.lang.String source)
public boolean runsource(java.lang.String source, java.lang.String filename)
public boolean runsource(java.lang.String source, java.lang.String filename, CompileMode kind)
public void runcode(PyObject code)
public void showexception(PyException exc)
public void write(java.lang.String data)
public void resetbuffer()
public void interrupt(ThreadState ts)