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, getProgramtoStringgetInfo, getPriority, setInfo, setPrioritycontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAutoCompleter, isCompiledLanguagegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic boolean isNashorn()
public boolean isRhino()
public boolean isGraalJS()
public boolean isOpenJDK()
public ScriptEngine getScriptEngine()
getScriptEngine in interface ScriptEngineFactorygetScriptEngine in class AdaptedScriptLanguagepublic Object decode(Object object)
ScriptLanguageScriptEngine.get(String)Copyright © 2015–2022 SciJava. All rights reserved.