public interface ScriptEngineRegistry
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getEngineNames()
Returns a collection that contains the names of the script engines.
|
ScriptEngine |
getScriptEngine(String engineName)
Returns the script engine specified by given name.
|
ScriptEngine |
getScriptEngineForSource(String scriptSource)
Tries to parse the script source to determine the script engine type.
|
Collection<String> getEngineNames()
ScriptEngine getScriptEngine(@NotNull String engineName) throws UnsupportedScriptEngine
engineName
- the name of the engine to get.UnsupportedScriptEngine
- if script engine is not supported.ScriptEngine getScriptEngineForSource(@NotNull String scriptSource)
scriptSource
- the source of the script.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210