org.python.util
Class JLineConsole
java.lang.Object
org.python.util.PythonInterpreter
org.python.util.InteractiveInterpreter
org.python.util.InteractiveConsole
org.python.util.JLineConsole
public class JLineConsole
- extends InteractiveConsole
This class uses JLine to provide
readline like functionality to its console without requiring native readline
support.
Methods inherited from class org.python.util.PythonInterpreter |
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 |
JLineConsole
public JLineConsole()
JLineConsole
public JLineConsole(PyObject locals)
JLineConsole
public JLineConsole(PyObject locals,
String filename)
raw_input
public String raw_input(PyObject prompt)
- Description copied from class:
InteractiveConsole
- Write a prompt and read a line from standard input.
The returned line does not include the trailing newline. When the user
enters the EOF key sequence, EOFError is raised.
The base implementation uses the built-in function raw_input(); a
subclass may replace this with a different implementation.
- Overrides:
raw_input
in class InteractiveConsole
getReader
public jline.ConsoleReader getReader()
- Returns:
- the JLine console reader associated with this interpreter
getStartupHook
public PyObject getStartupHook()
- Returns:
- the startup hook (called prior to each readline)
setStartupHook
public void setStartupHook(PyObject hook)
- Sets the startup hook (called prior to each readline)
Jython homepage