public class AdaptedScriptLanguage extends AbstractScriptLanguage
ScriptLanguage
implementations which adapt an
existing ScriptEngineFactory
.
This is useful for situations where a JSR-223-compliant script engine has been provided, but whose behavior we need to extend or tweak.
Constructor and Description |
---|
AdaptedScriptLanguage(ScriptEngineFactory base)
Creates a new
AdaptedScriptLanguage wrapping the given
ScriptEngineFactory . |
AdaptedScriptLanguage(String factoryName)
Creates a new
AdaptedScriptLanguage wrapping the
ScriptEngineFactory with the given name. |
Modifier and Type | Method and Description |
---|---|
String |
getEngineName() |
String |
getEngineVersion() |
List<String> |
getExtensions() |
String |
getLanguageName() |
String |
getLanguageVersion() |
String |
getMethodCallSyntax(String obj,
String m,
String... args) |
List<String> |
getMimeTypes() |
List<String> |
getNames() |
String |
getOutputStatement(String toDisplay) |
Object |
getParameter(String key) |
String |
getProgram(String... statements) |
ScriptEngine |
getScriptEngine() |
toString
getInfo, getPriority, setInfo, setPriority
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decode, getAutoCompleter, isCompiledLanguage
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public AdaptedScriptLanguage(ScriptEngineFactory base)
AdaptedScriptLanguage
wrapping the given
ScriptEngineFactory
.public AdaptedScriptLanguage(String factoryName)
AdaptedScriptLanguage
wrapping the
ScriptEngineFactory
with the given name.public String getEngineName()
getEngineName
in interface ScriptEngineFactory
getEngineName
in class AbstractScriptLanguage
public String getEngineVersion()
public String getLanguageName()
getLanguageName
in interface ScriptEngineFactory
getLanguageName
in class AbstractScriptLanguage
public String getLanguageVersion()
public ScriptEngine getScriptEngine()
Copyright © 2015–2022 SciJava. All rights reserved.