Class JythonSupport

    • Method Detail

      • log

        public void log​(int level,
                        String message,
                        Object... args)
      • isSupported

        public static boolean isSupported()
      • interpreterGet

        public org.python.util.PythonInterpreter interpreterGet()
        For experts, who want to tweak the Jython interprter instance
        Usage: org.sikuli.script.runnerSupport.JythonSupport.get().interpreterGet()
        Returns:
        the singleton Jython interpreter instance (org.python.util.PythonInterpreter)
      • interpreterCleanup

        public void interpreterCleanup()
      • interpreterClose

        public void interpreterClose()
      • interpreterEval

        public Object interpreterEval​(String expression)
      • interpreterExecString

        public boolean interpreterExecString​(String script)
      • interpreterExecCode

        public void interpreterExecCode​(File compiledScript)
      • interpreterExecFile

        public void interpreterExecFile​(String script)
      • executeScriptHeader

        public void executeScriptHeader​(List<String> codeBefore)
      • getSysPath

        public void getSysPath()
      • setSysPath

        public void setSysPath()
      • addSysPath

        public void addSysPath​(File fFolder)
      • addSysPath

        public void addSysPath​(String fpFolder)
      • appendSysPath

        public void appendSysPath​(String fpFolder)
      • putSysPath

        public void putSysPath​(String fpFolder,
                               int n)
      • insertSysPath

        public void insertSysPath​(File fFolder)
      • removeSysPath

        public void removeSysPath​(File fFolder)
      • hasSysPath

        public boolean hasSysPath​(String fpFolder)
      • getSysPathEntry

        public int getSysPathEntry​(File fFolder)
      • showSysPath

        public void showSysPath()
      • addSitePackages

        public void addSitePackages()
      • reloadImported

        public void reloadImported()
      • loadModulePrepare

        public String loadModulePrepare​(String modName,
                                        String modPath)
      • existsSysPathModule

        public File existsSysPathModule​(String modname)
      • existsSysPathJar

        public File existsSysPathJar​(String fpJar)
      • interpreterFillSysArgv

        public void interpreterFillSysArgv​(File pyFile,
                                           String[] argv)
      • setSysArgv

        public void setSysArgv​(List<String> args)
      • prepareRobot

        public boolean prepareRobot()
      • getCurrentLine

        public String getCurrentLine()
      • findErrorSource

        public int findErrorSource​(Throwable throwable,
                                   String filename)
      • runJar

        public int runJar​(String fpJarOrFolder)
      • runJar

        public int runJar​(String fpJarOrFolder,
                          String imagePath)
      • load

        public String load​(String fpJar,
                           boolean scriptOnly)
      • checkCallback

        public boolean checkCallback​(Object[] args)
      • runLoggerCallback

        public boolean runLoggerCallback​(Object[] args)
      • runObserveCallback

        public boolean runObserveCallback​(Object[] args)
        Description copied from interface: IRunnerSupport
        Run callback for observers.
        Specified by:
        runObserveCallback in interface IRunnerSupport
        Parameters:
        args - is array for two elements. First is a callback object. Second is an event.
        Returns:
        true if the callback was ran correctly. False in other cases.
      • runCallback

        public boolean runCallback​(Object[] args)