Package org.mozilla.javascript.engine
Class RhinoScriptEngineFactory
- java.lang.Object
- 
- org.mozilla.javascript.engine.RhinoScriptEngineFactory
 
- 
- All Implemented Interfaces:
- javax.script.ScriptEngineFactory
 
 public class RhinoScriptEngineFactory extends java.lang.Object implements javax.script.ScriptEngineFactoryThis is an implementation of the standard Java "ScriptEngine" for Rhino. If the Rhino engine (typically in the form of the "rhino-engine" JAR) is in the classpath, then this script engine will be activated.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. 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringNAME
 - 
Constructor SummaryConstructors Constructor Description RhinoScriptEngineFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEngineName()java.lang.StringgetEngineVersion()java.util.List<java.lang.String>getExtensions()java.lang.StringgetLanguageName()java.lang.StringgetLanguageVersion()java.lang.StringgetMethodCallSyntax(java.lang.String obj, java.lang.String m, java.lang.String... args)java.util.List<java.lang.String>getMimeTypes()java.util.List<java.lang.String>getNames()java.lang.StringgetOutputStatement(java.lang.String toDisplay)java.lang.ObjectgetParameter(java.lang.String key)java.lang.StringgetProgram(java.lang.String... statements)javax.script.ScriptEnginegetScriptEngine()
 
- 
- 
- 
Field Detail- 
NAMEpublic static final java.lang.String NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getEngineNamepublic java.lang.String getEngineName() - Specified by:
- getEngineNamein interface- javax.script.ScriptEngineFactory
 
 - 
getEngineVersionpublic java.lang.String getEngineVersion() - Specified by:
- getEngineVersionin interface- javax.script.ScriptEngineFactory
 
 - 
getExtensionspublic java.util.List<java.lang.String> getExtensions() - Specified by:
- getExtensionsin interface- javax.script.ScriptEngineFactory
 
 - 
getMimeTypespublic java.util.List<java.lang.String> getMimeTypes() - Specified by:
- getMimeTypesin interface- javax.script.ScriptEngineFactory
 
 - 
getNamespublic java.util.List<java.lang.String> getNames() - Specified by:
- getNamesin interface- javax.script.ScriptEngineFactory
 
 - 
getLanguageNamepublic java.lang.String getLanguageName() - Specified by:
- getLanguageNamein interface- javax.script.ScriptEngineFactory
 
 - 
getLanguageVersionpublic java.lang.String getLanguageVersion() - Specified by:
- getLanguageVersionin interface- javax.script.ScriptEngineFactory
 
 - 
getParameterpublic java.lang.Object getParameter(java.lang.String key) - Specified by:
- getParameterin interface- javax.script.ScriptEngineFactory
 
 - 
getMethodCallSyntaxpublic java.lang.String getMethodCallSyntax(java.lang.String obj, java.lang.String m, java.lang.String... args)- Specified by:
- getMethodCallSyntaxin interface- javax.script.ScriptEngineFactory
 
 - 
getOutputStatementpublic java.lang.String getOutputStatement(java.lang.String toDisplay) - Specified by:
- getOutputStatementin interface- javax.script.ScriptEngineFactory
 
 - 
getProgrampublic java.lang.String getProgram(java.lang.String... statements) - Specified by:
- getProgramin interface- javax.script.ScriptEngineFactory
 
 - 
getScriptEnginepublic javax.script.ScriptEngine getScriptEngine() - Specified by:
- getScriptEnginein interface- javax.script.ScriptEngineFactory
 
 
- 
 
-