Class JavaScriptProvider
- All Implemented Interfaces:
ScriptProvider
Compiles Java source files at runtime using the system Java compiler or loads precompiled script classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(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) Creates semantic tooling for this language when the provider supports editor integration.language()
-
Constructor Details
-
JavaScriptProvider
public JavaScriptProvider()
-
-
Method Details
-
language
- Specified by:
languagein interfaceScriptProvider
-
createLanguageService
public Optional<ScriptLanguageService> createLanguageService(ScriptLanguageService.Workspace workspace) Description copied from interface:ScriptProviderCreates semantic tooling for this language when the provider supports editor integration.- Specified by:
createLanguageServicein interfaceScriptProvider
-
compile
public CompiledScript compile(ScriptDefinition definition, URL source, ClassLoader parent) throws ScriptException - Specified by:
compilein interfaceScriptProvider- Throws:
ScriptException
-
compile
public CompiledScript compile(ScriptDefinition definition, URL source, ScriptCompilationContext context) throws ScriptException Description copied from interface:ScriptProviderCompiles a script with classpath and language-level information supplied by the project build.- Specified by:
compilein interfaceScriptProvider- Throws:
ScriptException
-