Package org.sikuli.script.support
Class IScriptRunner.Options
java.lang.Object
org.sikuli.script.support.IScriptRunner.Options
- Enclosing interface:
- IScriptRunner
public static class IScriptRunner.Options extends Object
Special options to pass to the runner.
Options are more to be interpreted as hints instead of strict directives. A specific runner implementation can decide to ignore an option entirely.
- Author:
- mbalmer
-
Constructor Summary
Constructors Constructor Description Options() -
Method Summary
Modifier and Type Method Description FilegetBaseFolder()intgetErrorLine()Get the error source line set by the runner.longgetTimeout()booleanisRunningFromScript()booleanisRunningInIDE()booleanisSilent()voidsetBaseFolder(File baseFolder)IScriptRunner.OptionssetErrorLine(int errorLine)If a script run fails, the runner can set the source line where the error happened.IScriptRunner.OptionssetRunningFromScript()IScriptRunner.OptionssetRunningInIDE()voidsetRunningInIDE(boolean runningInIDE)IScriptRunner.OptionssetSilent(boolean silent)Indicates that the runner should behave silent.IScriptRunner.OptionssetTimeout(long timeout)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
isSilent
public boolean isSilent() -
setSilent
Indicates that the runner should behave silent. E.g. not making output to SDTIO.- Parameters:
silent-- Returns:
- this to allow chaining
-
getErrorLine
public int getErrorLine()Get the error source line set by the runner.- Returns:
- source line where the error happened
-
setErrorLine
If a script run fails, the runner can set the source line where the error happened.There is no effect setting this from the outside.
- Parameters:
errorLine-
-
isRunningInIDE
public boolean isRunningInIDE() -
setRunningInIDE
-
isRunningFromScript
public boolean isRunningFromScript() -
setRunningFromScript
-
setRunningInIDE
public void setRunningInIDE(boolean runningInIDE) -
getTimeout
public long getTimeout() -
setTimeout
-
getBaseFolder
-
setBaseFolder
-