Class ScriptEngineConsoleCommandExtension

java.lang.Object
org.openhab.core.io.console.extensions.AbstractConsoleCommandExtension
org.openhab.core.model.script.extension.ScriptEngineConsoleCommandExtension
All Implemented Interfaces:
ConsoleCommandExtension

@NonNullByDefault public class ScriptEngineConsoleCommandExtension extends AbstractConsoleCommandExtension
This class provides the script engine as a console command
Author:
Oliver Libutzki - Initial contribution
  • Constructor Details

    • ScriptEngineConsoleCommandExtension

      public ScriptEngineConsoleCommandExtension()
  • Method Details

    • execute

      public void execute(String[] args, Console console)
      Description copied from interface: ConsoleCommandExtension
      This method called if a command for that extension is called. Clients are not allowed to throw exceptions. They have to write corresponding messages to the given Console
      Parameters:
      args - array which contains all the console command arguments
      console - the console used to print
    • getUsages

      public List<String> getUsages()
      Returns:
      the help texts for this extension
    • setScriptEngine

      public void setScriptEngine(ScriptEngine scriptEngine)
    • unsetScriptEngine

      public void unsetScriptEngine(ScriptEngine scriptEngine)