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,
java.lang.String symbol) |
void |
showexception(PyException exc) |
void |
write(java.lang.String data) |
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, java.lang.String symbol)
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)