Interface ScriptModule

All Known Implementing Classes:
StandardLibraryScriptModule

@NullMarked public interface ScriptModule
ScriptModule defines the api for a module to be imported into a ScriptRuntime.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the constant definitions within this module.
    Gets the variable definitions within this module.
  • Method Details

    • variables

      Map<String,Object> variables()
      Gets the variable definitions within this module.
      Returns:
      the variable definitions within this module
    • constants

      Map<String,Object> constants()
      Gets the constant definitions within this module.
      Returns:
      the constant definitions within this module