Class 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 Detail

      • Options

        public Options()
    • Method Detail

      • isSilent

        public boolean isSilent()
      • setSilent

        public IScriptRunner.Options setSilent​(boolean silent)
        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

        public IScriptRunner.Options setErrorLine​(int errorLine)
        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()
      • isRunningFromScript

        public boolean isRunningFromScript()
      • setRunningInIDE

        public void setRunningInIDE​(boolean runningInIDE)
      • getTimeout

        public long getTimeout()
      • getBaseFolder

        public File getBaseFolder()
      • setBaseFolder

        public void setBaseFolder​(File baseFolder)