public class RhinoScriptEngineFactory extends Object implements ScriptEngineFactory
See the list of constants in this class for the list of language names, file extensions, and MIME types that this engine supports. This list is essentially the same as the list supported in the Nashorn script engine that was included in Java 8.
Since this engine and Nashorn support the same language and file extensions, then unless you are sure you are running in an environment that has Nashorn, the best way to get this engine is to call ScriptEngine.getEngineByName("rhino") to ask for Rhino directly.
| Constructor and Description |
|---|
RhinoScriptEngineFactory() |
| 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() |
public static final String NAME
public String getEngineName()
getEngineName in interface ScriptEngineFactorypublic String getEngineVersion()
getEngineVersion in interface ScriptEngineFactorypublic List<String> getExtensions()
getExtensions in interface ScriptEngineFactorypublic List<String> getMimeTypes()
getMimeTypes in interface ScriptEngineFactorypublic List<String> getNames()
getNames in interface ScriptEngineFactorypublic String getLanguageName()
getLanguageName in interface ScriptEngineFactorypublic String getLanguageVersion()
getLanguageVersion in interface ScriptEngineFactorypublic Object getParameter(String key)
getParameter in interface ScriptEngineFactorypublic String getMethodCallSyntax(String obj, String m, String... args)
getMethodCallSyntax in interface ScriptEngineFactorypublic String getOutputStatement(String toDisplay)
getOutputStatement in interface ScriptEngineFactorypublic String getProgram(String... statements)
getProgram in interface ScriptEngineFactorypublic ScriptEngine getScriptEngine()
getScriptEngine in interface ScriptEngineFactoryCopyright © 2023 HtmlUnit. All rights reserved.