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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method called if acommand
for that extension is called.void
setScriptEngine
(ScriptEngine scriptEngine) void
unsetScriptEngine
(ScriptEngine scriptEngine) Methods inherited from class org.openhab.core.io.console.extensions.AbstractConsoleCommandExtension
buildCommandUsage, buildCommandUsage, getCommand, getDescription, printUsage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openhab.core.io.console.extensions.ConsoleCommandExtension
getCompleter
-
Constructor Details
-
ScriptEngineConsoleCommandExtension
public ScriptEngineConsoleCommandExtension()
-
-
Method Details
-
execute
Description copied from interface:ConsoleCommandExtension
This method called if acommand
for 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
-