类 PythonInteractiveInterpreter
- java.lang.Object
-
- org.python.util.PythonInterpreter
-
- org.python.util.InteractiveInterpreter
-
- org.python.util.InteractiveConsole
-
- org.meteoinfo.laboratory.gui.PythonInteractiveInterpreter
-
- 所有已实现的接口:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Runnable
public class PythonInteractiveInterpreter extends org.python.util.InteractiveConsole implements java.lang.Runnable- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 PythonInteractiveInterpreter(org.meteoinfo.console.JConsole console)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddConsoleExecListener(IConsoleExecListener listener)voidexecfile(java.io.InputStream s)voidexecfile(java.lang.String fn)voidfireConsoleExecEvent()org.meteoinfo.console.JConsolegetConsole()Get consolebooleanisSourceUTF8()Get this.cflags.source_is_utf8voidremoveConsoleExecListener(IConsoleExecListener listener)voidrun()voidsetConsole(org.meteoinfo.console.JConsole console)Set consolevoidsetConsoleColors(ConsoleColors value)Set console colorsvoidsetSourceUTF8(boolean value)Set this.cflags.source_is_utf8voidupate()Update in, out and err-
从类继承的方法 org.python.util.InteractiveConsole
_interact, getDefaultBanner, interact, interact, push, raw_input, raw_input
-
从类继承的方法 org.python.util.InteractiveInterpreter
interrupt, resetbuffer, runcode, runsource, runsource, runsource, showexception, write
-
从类继承的方法 org.python.util.PythonInterpreter
cleanup, close, compile, compile, compile, compile, eval, eval, exec, exec, execfile, get, get, getLocals, getSystemState, initialize, set, set, setErr, setErr, setErr, setIn, setIn, setIn, setLocals, setOut, setOut, setOut, setSystemState, threadLocalStateInterpreter
-
-
-
-
方法详细资料
-
getConsole
public org.meteoinfo.console.JConsole getConsole()
Get console- 返回:
- Console
-
setConsole
public void setConsole(org.meteoinfo.console.JConsole console)
Set console- 参数:
console- the JConsole
-
setConsoleColors
public void setConsoleColors(ConsoleColors value)
Set console colors- 参数:
value- Console colors
-
upate
public void upate()
Update in, out and err
-
isSourceUTF8
public boolean isSourceUTF8()
Get this.cflags.source_is_utf8- 返回:
- Boolean
-
setSourceUTF8
public void setSourceUTF8(boolean value)
Set this.cflags.source_is_utf8- 参数:
value-
-
run
public void run()
- 指定者:
run在接口中java.lang.Runnable
-
execfile
public void execfile(java.io.InputStream s)
- 覆盖:
execfile在类中org.python.util.PythonInterpreter
-
execfile
public void execfile(java.lang.String fn)
- 覆盖:
execfile在类中org.python.util.PythonInterpreter
-
addConsoleExecListener
public void addConsoleExecListener(IConsoleExecListener listener)
-
removeConsoleExecListener
public void removeConsoleExecListener(IConsoleExecListener listener)
-
fireConsoleExecEvent
public void fireConsoleExecEvent()
-
-