Package org.luwrain.script.core
Class ScriptCore
java.lang.Object
org.luwrain.script.core.ScriptCore
- All Implemented Interfaces:
AutoCloseable
,HookContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.luwrain.core.HookContainer
HookContainer.Hook, HookContainer.HookResult, HookContainer.HookRunner
-
Constructor Summary
ConstructorDescriptionScriptCore
(Luwrain luwrain) ScriptCore
(Luwrain luwrain, Bindings bindings) ScriptCore
(Luwrain luwrain, org.luwrain.script.core.InternalCoreFuncs internalCoreFuncs, Bindings bindings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Command[]
void
void
load
(ScriptSource scriptSource) boolean
runHooks
(String hookName, HookContainer.HookRunner runner)
-
Constructor Details
-
ScriptCore
-
ScriptCore
-
ScriptCore
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
runHooks
- Specified by:
runHooks
in interfaceHookContainer
-
getExtObjects
-
getCommands
-