Class SolaScript

java.lang.Object
technology.sola.script.SolaScript

public class SolaScript extends Object
SolaScript is a runtime container for executing sola scripts.
  • Constructor Details

    • SolaScript

      public SolaScript()
      Creates an instance of the SolaScript runtime with the StandardLibraryScriptModule imported.
    • SolaScript

      public SolaScript(List<ScriptModule> modules)
      Creates an instance of the SolaScript runtime with the desired ScriptModules imported.
      Parameters:
      modules - the modules to import
  • Method Details

    • execute

      public ErrorContainer execute(String source)
      Executes a sola script using the current state of the SolaScript runtime.
      Parameters:
      source - the sola script to execute
      Returns:
      the ErrorContainer for the result of the execution