Package org.sikuli.script.runners
Class RobotRunner
java.lang.Object
org.sikuli.script.runners.AbstractScriptRunner
org.sikuli.script.runners.AbstractLocalFileScriptRunner
org.sikuli.script.runners.JythonRunner
org.sikuli.script.runners.RobotRunner
- All Implemented Interfaces:
IScriptRunner
public class RobotRunner extends JythonRunner
-
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 RobotRunner() -
Method Summary
Modifier and Type Method Description protected intdoEvalScript(String code, IScriptRunner.Options options)protected voiddoInit(String[] args)String[]getExtensions()returns the list of possible script file extensions, first is the defaultString[]getFileEndings()Usually the same as getExtensions() but with the leading dot.StringgetName()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.JythonRunner
doClose, doRedirect, doRunLines, doRunScript, isAbortSupportedMethods inherited from class org.sikuli.script.runners.AbstractLocalFileScriptRunner
canHandle, prepareFileLocationMethods inherited from class org.sikuli.script.runners.AbstractScriptRunner
abort, canHandleFileEnding, close, doAbort, evalScript, execAfter, execBefore, getDefaultExtension, getEffectiveRunner, hasExtension, init, isAborted, isReady, isRunning, log, redirect, reset, runLines, runScript
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
TYPE
- See Also:
- Constant Field Values
-
EXTENSIONS
-
-
Constructor Details
-
RobotRunner
public RobotRunner()
-
-
Method Details
-
doEvalScript
- Overrides:
doEvalScriptin classJythonRunner
-
isSupported
public boolean isSupported()Description copied from class:JythonRunnerChecks if the current platform supports this runner.- Specified by:
isSupportedin interfaceIScriptRunner- Overrides:
isSupportedin classJythonRunner- Returns:
- true if platform supports this runner, false otherwise
-
getName
Description copied from class:JythonRunnerGets the name of the ScriptRunner. Should be unique. This value is needed to distinguish between different ScriptRunners.- Specified by:
getNamein interfaceIScriptRunner- Overrides:
getNamein classJythonRunner- Returns:
- Name to identify the ScriptRunner or null if not available
-
getExtensions
Description copied from class:JythonRunnerreturns the list of possible script file extensions, first is the default- Specified by:
getExtensionsin interfaceIScriptRunner- Overrides:
getExtensionsin classJythonRunner- Returns:
- array of strings
-
getType
Description copied from interface:IScriptRunnerreturn the type of script this handler can execute.- Specified by:
getTypein interfaceIScriptRunner- Overrides:
getTypein classJythonRunner- Returns:
-
doInit
- Overrides:
doInitin classJythonRunner
-
getFileEndings
Description copied from interface:IScriptRunnerUsually the same as getExtensions() but with the leading dot.Some files (e.g. $py.class) might have a somewhat unusual but very specific file ending.
- Specified by:
getFileEndingsin interfaceIScriptRunner- Overrides:
getFileEndingsin classJythonRunner- Returns:
- An Array containing the supported line endings
-