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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method called if acommandfor that extension is called.voidsetScriptEngine(ScriptEngine scriptEngine) voidunsetScriptEngine(ScriptEngine scriptEngine) Methods inherited from class org.openhab.core.io.console.extensions.AbstractConsoleCommandExtension
buildCommandUsage, buildCommandUsage, getCommand, getDescription, printUsageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openhab.core.io.console.extensions.ConsoleCommandExtension
getCompleter
-
Constructor Details
-
ScriptEngineConsoleCommandExtension
public ScriptEngineConsoleCommandExtension()
-
-
Method Details
-
execute
Description copied from interface:ConsoleCommandExtensionThis method called if acommandfor that extension is called. Clients are not allowed to throw exceptions. They have to write corresponding messages to the givenConsole- Parameters:
args- array which contains all the console command argumentsconsole- the console used to print
-
getUsages
- Returns:
- the help texts for this extension
-
setScriptEngine
-
unsetScriptEngine
-