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 theStandardLibraryScriptModule
imported.SolaScript
(List<ScriptModule> modules) Creates an instance of the SolaScript runtime with the desiredScriptModule
s imported. -
Method Summary
Modifier and TypeMethodDescriptionExecutes a sola script using the current state of theSolaScript
runtime.
-
Constructor Details
-
SolaScript
public SolaScript()Creates an instance of the SolaScript runtime with theStandardLibraryScriptModule
imported. -
SolaScript
Creates an instance of the SolaScript runtime with the desiredScriptModule
s imported.- Parameters:
modules
- the modules to import
-
-
Method Details
-
execute
Executes a sola script using the current state of theSolaScript
runtime.- Parameters:
source
- the sola script to execute- Returns:
- the
ErrorContainer
for the result of the execution
-