public class JavaScriptScriptLanguage extends AdaptedScriptLanguage
ScriptEngine
Constructor and Description |
---|
JavaScriptScriptLanguage() |
Modifier and Type | Method and Description |
---|---|
Object |
decode(Object object)
Performs any necessary conversion of an encoded object retrieved from the
language's script engine.
|
ScriptEngine |
getScriptEngine() |
boolean |
isGraalJS()
Returns true iff this script language is using the
Graal.js scripting engine.
|
boolean |
isNashorn()
Returns true iff this script language is using the Nashorn JavaScript
engine.
|
boolean |
isOpenJDK()
Returns true iff the JVM appears to be the OpenJDK version of Java.
|
boolean |
isRhino()
Returns true iff this script language is using the Rhino JavaScript engine.
|
getEngineName, getEngineVersion, getExtensions, getLanguageName, getLanguageVersion, getMethodCallSyntax, getMimeTypes, getNames, getOutputStatement, getParameter, getProgram
toString
getInfo, getPriority, setInfo, setPriority
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAutoCompleter, isCompiledLanguage
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public boolean isNashorn()
public boolean isRhino()
public boolean isGraalJS()
public boolean isOpenJDK()
public ScriptEngine getScriptEngine()
getScriptEngine
in interface ScriptEngineFactory
getScriptEngine
in class AdaptedScriptLanguage
public Object decode(Object object)
ScriptLanguage
ScriptEngine.get(String)
Copyright © 2015–2022 SciJava. All rights reserved.