Additional top-level class in compilation unit: BreakTraceFunction.
| Modifier and Type | Field and Description |
|---|---|
| public StringBuilder | |
| public String |
| Access | Constructor and Description |
|---|---|
| public | InteractiveInterpreter()
Construct an InteractiveInterpreter with all default characteristics: default state (from
|
| public | InteractiveInterpreter(PyObject
dictionary to use, or if locals)null, a new empty one will be createdConstruct an InteractiveInterpreter with state (from |
| public | InteractiveInterpreter(PyObject
dictionary to use, or if locals, PySystemState null, a new empty one will be createdinterpreter state, or if systemState)null use Py#getSystemState()Construct an InteractiveInterpreter with, and system state the specified dictionary of local variables. |
| Modifier and Type | Method and Description |
|---|---|
| public 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; |
| public void | |
| public void | |
| public boolean | Returns: true to indicate a partial statement was enteredPython code source)Compile and run some source in the interpreter, in the mode |
| public boolean | Returns: true to indicate a partial statement was enteredPython code source, String name with which to label this console input (e.g. in error messages). filename)Compile and run some source in the interpreter, in the mode |
| public boolean | Returns: true to indicate a partial statement was providedPython code source, String name with which to label this console input (e.g. in error messages). filename, CompileMode kind)Compile and run some source in the interpreter, according to the |
| public void | |
| public void |
| buffer | back to summary |
|---|---|
| public StringBuilder buffer | |
| filename | back to summary |
|---|---|
| public String filename | |
| InteractiveInterpreter | back to summary |
|---|---|
| public InteractiveInterpreter() Construct an InteractiveInterpreter with all default characteristics: default state (from
| |
| InteractiveInterpreter | back to summary |
|---|---|
| public InteractiveInterpreter(PyObject locals) Construct an InteractiveInterpreter with state (from
| |
| InteractiveInterpreter | back to summary |
|---|---|
| public InteractiveInterpreter(PyObject locals, PySystemState systemState) Construct an InteractiveInterpreter with, and system state the specified dictionary of local variables.
| |
| interrupt | back to summary |
|---|---|
| public 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; | |
| resetbuffer | back to summary |
|---|---|
| public void resetbuffer() | |
| runcode | back to summary |
|---|---|
| public void runcode(PyObject code) Execute a code object. When an exception occurs, A note about KeyboardInterrupt: this exception may occur elsewhere in this code, and may not always be caught. The caller should be prepared to deal with it. | |
| runsource | back to summary |
|---|---|
| public boolean runsource(String source) Compile and run some source in the interpreter, in the mode
| |
| runsource | back to summary |
|---|---|
| public boolean runsource(String source, String filename) Compile and run some source in the interpreter, in the mode
| |
| runsource | back to summary |
|---|---|
| public boolean runsource(String source, String filename, CompileMode kind) Compile and run some source in the interpreter, according to the One the following can happen:
| |
| showexception | back to summary |
|---|---|
| public void showexception(PyException exc) | |
| write | back to summary |
|---|---|
| public void write(String data) | |