Interface ScriptEngine

    • Method Detail

      • getType

        String getType()
        The language name used in the script APIs to refer to this scripting backend.
      • compile

        <FactoryType> FactoryType compile​(String name,
                                          String code,
                                          ScriptContext<FactoryType> context,
                                          Map<String,​String> params)
        Compiles a script.
        Parameters:
        name - the name of the script. null if it is anonymous (inline). For a stored script, its the identifier.
        code - actual source of the script
        context - the context this script will be used for
        params - compile-time parameters (such as flags to the compiler)
        Returns:
        A compiled script of the FactoryType from ScriptContext