Interface ScriptProvider
- All Known Implementing Classes:
JavaScriptProvider
public interface ScriptProvider
Compiles or resolves scripts for one source language.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompiledScriptcompile(ScriptDefinition definition, URL source, ScriptCompilationContext context) Compiles a script with classpath and language-level information supplied by the project build.compile(ScriptDefinition definition, URL source, ClassLoader parent) default Optional<ScriptLanguageService> Creates semantic tooling for this language when the provider supports editor integration.language()
-
Method Details
-
language
String language() -
compile
CompiledScript compile(ScriptDefinition definition, URL source, ClassLoader parent) throws ScriptException - Throws:
ScriptException
-
compile
default CompiledScript compile(ScriptDefinition definition, URL source, ScriptCompilationContext context) throws ScriptException Compiles a script with classpath and language-level information supplied by the project build.- Throws:
ScriptException
-
createLanguageService
default Optional<ScriptLanguageService> createLanguageService(ScriptLanguageService.Workspace workspace) Creates semantic tooling for this language when the provider supports editor integration.
-