Package org.sikuli.script.runners
Class PythonRunner
java.lang.Object
org.sikuli.script.runners.AbstractScriptRunner
org.sikuli.script.runners.AbstractLocalFileScriptRunner
org.sikuli.script.runners.PythonRunner
- All Implemented Interfaces:
IScriptRunner
public class PythonRunner extends AbstractLocalFileScriptRunner
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sikuli.script.support.IScriptRunner
IScriptRunner.EffectiveRunner, IScriptRunner.Options -
Field Summary
-
Constructor Summary
Constructors Constructor Description PythonRunner() -
Method Summary
Modifier and Type Method Description protected booleandoRedirect(PrintStream stdout, PrintStream stderr)protected intdoRunScript(String scriptfile, String[] scriptArgs, IScriptRunner.Options options)String[]getExtensions()returns the list of possible script file extensions, first is the defaultStringgetName()Gets the name of the ScriptRunner.StringgetType()return the type of script this handler can execute.booleanisSupported()Checks if the current platform supports this runner.Methods inherited from class org.sikuli.script.runners.AbstractLocalFileScriptRunner
canHandle, prepareFileLocationMethods inherited from class org.sikuli.script.runners.AbstractScriptRunner
abort, canHandleFileEnding, close, doAbort, doClose, doEvalScript, doInit, doRunLines, evalScript, execAfter, execBefore, getDefaultExtension, getEffectiveRunner, getFileEndings, hasExtension, init, isAborted, isAbortSupported, isReady, isRunning, log, redirect, reset, runLines, runScript
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
TYPE
- See Also:
- Constant Field Values
-
EXTENSIONS
-
-
Constructor Details
-
PythonRunner
public PythonRunner()
-
-
Method Details
-
getName
Description copied from interface:IScriptRunnerGets the name of the ScriptRunner. Should be unique. This value is needed to distinguish between different ScriptRunners.- Returns:
- Name to identify the ScriptRunner or null if not available
-
getExtensions
Description copied from interface:IScriptRunnerreturns the list of possible script file extensions, first is the default- Returns:
- array of strings
-
getType
Description copied from interface:IScriptRunnerreturn the type of script this handler can execute.- Returns:
-
isSupported
public boolean isSupported()Description copied from interface:IScriptRunnerChecks if the current platform supports this runner.- Specified by:
isSupportedin interfaceIScriptRunner- Overrides:
isSupportedin classAbstractScriptRunner- Returns:
- true if platform supports this runner, false otherwise
-
doRedirect
- Overrides:
doRedirectin classAbstractScriptRunner
-
doRunScript
- Overrides:
doRunScriptin classAbstractScriptRunner
-