Package org.sikuli.script.runners
Class InvalidRunner
- java.lang.Object
-
- org.sikuli.script.runners.AbstractScriptRunner
-
- org.sikuli.script.runners.InvalidRunner
-
- All Implemented Interfaces:
IScriptRunner
public class InvalidRunner extends AbstractScriptRunner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sikuli.script.support.IScriptRunner
IScriptRunner.EffectiveRunner, IScriptRunner.Options
-
-
Constructor Summary
Constructors Constructor Description InvalidRunner()InvalidRunner(Class<? extends IScriptRunner> cl)InvalidRunner(String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoRunScript(String scriptfile, String[] scriptArgs, IScriptRunner.Options options)IScriptRunner.EffectiveRunnergetEffectiveRunner(String script)Needed in the IDE to detect the runner when file or folder is openedString[]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.-
Methods inherited from class org.sikuli.script.runners.AbstractScriptRunner
abort, adjustBundlePath, canHandle, canHandleFileEnding, close, doAbort, doClose, doEvalScript, doInit, doRedirect, doRunLines, evalScript, execAfter, execBefore, getDefaultExtension, getFileEndings, hasExtension, init, isAborted, isAbortSupported, isReady, isRunning, isSupported, log, redirect, reset, resetBundlePath, runLines, runScript
-
-
-
-
Constructor Detail
-
InvalidRunner
public InvalidRunner()
-
InvalidRunner
public InvalidRunner(String identifier)
-
InvalidRunner
public InvalidRunner(Class<? extends IScriptRunner> cl)
-
-
Method Detail
-
getName
public String 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
public String[] getExtensions()
Description copied from interface:IScriptRunnerreturns the list of possible script file extensions, first is the default- Returns:
- array of strings
-
getEffectiveRunner
public IScriptRunner.EffectiveRunner getEffectiveRunner(String script)
Description copied from interface:IScriptRunnerNeeded in the IDE to detect the runner when file or folder is opened- Specified by:
getEffectiveRunnerin interfaceIScriptRunner- Overrides:
getEffectiveRunnerin classAbstractScriptRunner- Returns:
- array: EffectiveRunner object
-
getType
public String getType()
Description copied from interface:IScriptRunnerreturn the type of script this handler can execute.- Returns:
-
doRunScript
protected int doRunScript(String scriptfile, String[] scriptArgs, IScriptRunner.Options options)
- Overrides:
doRunScriptin classAbstractScriptRunner
-
-