java.lang.Object
technology.sola.script.SolaScript
SolaScript is a runtime container for executing sola scripts.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the SolaScript runtime with theStandardLibraryScriptModuleimported.SolaScript(List<ScriptModule> modules) Creates an instance of the SolaScript runtime with the desiredScriptModules imported. -
Method Summary
Modifier and TypeMethodDescriptionExecutes a sola script using the current state of theSolaScriptruntime.
-
Constructor Details
-
SolaScript
public SolaScript()Creates an instance of the SolaScript runtime with theStandardLibraryScriptModuleimported. -
SolaScript
Creates an instance of the SolaScript runtime with the desiredScriptModules imported.- Parameters:
modules- the modules to import
-
-
Method Details
-
execute
Executes a sola script using the current state of theSolaScriptruntime.- Parameters:
source- the sola script to execute- Returns:
- the
ErrorContainerfor the result of the execution
-