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() |
toStringgetInfo, getPriority, setInfo, setPrioritycontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecode, getAutoCompleter, isCompiledLanguagegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic 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 ScriptEngineFactorygetEngineName in class AbstractScriptLanguagepublic String getEngineVersion()
public String getLanguageName()
getLanguageName in interface ScriptEngineFactorygetLanguageName in class AbstractScriptLanguagepublic String getLanguageVersion()
public ScriptEngine getScriptEngine()
Copyright © 2015–2022 SciJava. All rights reserved.