类 PythonInteractiveInterpreter

  • 所有已实现的接口:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Runnable

    public class PythonInteractiveInterpreter
    extends org.python.util.InteractiveConsole
    implements java.lang.Runnable
    作者:
    yaqiang
    • 字段概要

      • 从类继承的字段 org.python.util.InteractiveConsole

        CONSOLE_FILENAME, filename
      • 从类继承的字段 org.python.util.InteractiveInterpreter

        buffer
      • 从类继承的字段 org.python.util.PythonInterpreter

        cflags, systemState, threadLocals, useThreadLocalState
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addConsoleExecListener​(IConsoleExecListener listener)  
      void execfile​(java.io.InputStream s)  
      void execfile​(java.lang.String fn)  
      void fireConsoleExecEvent()  
      org.meteoinfo.console.JConsole getConsole()
      Get console
      boolean isSourceUTF8()
      Get this.cflags.source_is_utf8
      void removeConsoleExecListener​(IConsoleExecListener listener)  
      void run()  
      void setConsole​(org.meteoinfo.console.JConsole console)
      Set console
      void setSourceUTF8​(boolean value)
      Set this.cflags.source_is_utf8
      void upate()
      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
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • PythonInteractiveInterpreter

        public PythonInteractiveInterpreter​(org.meteoinfo.console.JConsole console)
    • 方法详细资料

      • getConsole

        public org.meteoinfo.console.JConsole getConsole()
        Get console
        返回:
        Console
      • setConsole

        public void setConsole​(org.meteoinfo.console.JConsole console)
        Set console
        参数:
        console - the JConsole
      • 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
      • removeConsoleExecListener

        public void removeConsoleExecListener​(IConsoleExecListener listener)
      • fireConsoleExecEvent

        public void fireConsoleExecEvent()