javax.script
Interface ScriptEngineFactory


public interface ScriptEngineFactory

See Javadoc of Java Scripting API


Method Summary
 java.lang.String getEngineName()
          Retrieves the full name of the ScriptEngine.
 java.lang.String getEngineVersion()
          Retrieves the version of the Script Engine.
 java.util.List getExtensions()
          Retrieves an array of Strings which are file extensions tipically used for files containing scripts written in the language supported by the ScriptEngine.
 java.lang.String getLanguageName()
          Retrieves the name of the language supported by the ScriptEngine.
 java.lang.String getLanguageVersion()
          Retrieves the version of the language supported by the ScriptEngine.
 java.lang.String getMethodCallSyntax(java.lang.String obj, java.lang.String method, java.lang.String[] args)
           
 java.util.List getMimeTypes()
          Retrieves an array of Strings containing MIME types describing the content which can be processed using the Script Engine.
 java.util.List getNames()
          Retrieves an array of short descriptive names such as {"javascript", "rhino"} describing the language supported by the Script Engine.
 java.lang.String getOutputStatement(java.lang.String toDisplay)
           
 java.lang.Object getParameter(java.lang.String key)
          Retrieves an associated value for the specified key.
 java.lang.String getProgram(java.lang.String[] statements)
           
 ScriptEngine getScriptEngine()
          Retrieves an instance of the associated ScriptEngine.
 

Method Detail

getScriptEngine

ScriptEngine getScriptEngine()
Retrieves an instance of the associated ScriptEngine.

Returns:
an instance of the associated ScriptEngine

getEngineName

java.lang.String getEngineName()
Retrieves the full name of the ScriptEngine.

Returns:
the name of the Script Engine

getEngineVersion

java.lang.String getEngineVersion()
Retrieves the version of the Script Engine.

Returns:
the version of the Script Engine

getLanguageName

java.lang.String getLanguageName()
Retrieves the name of the language supported by the ScriptEngine.

Returns:
the name of the supported language

getLanguageVersion

java.lang.String getLanguageVersion()
Retrieves the version of the language supported by the ScriptEngine.

Returns:
the version of the supported language

getExtensions

java.util.List getExtensions()
Retrieves an array of Strings which are file extensions tipically used for files containing scripts written in the language supported by the ScriptEngine.

Returns:
string array of supported file extensions

getMimeTypes

java.util.List getMimeTypes()
Retrieves an array of Strings containing MIME types describing the content which can be processed using the Script Engine.

Returns:
string array of MIME types

getNames

java.util.List getNames()
Retrieves an array of short descriptive names such as {"javascript", "rhino"} describing the language supported by the Script Engine.

Returns:
an array of short descriptive names describing the language supported by the ScriptEngine

getParameter

java.lang.Object getParameter(java.lang.String key)
Retrieves an associated value for the specified key. Returns null if the ScriptEngine does not have an associated value for the key.

Returns:
associated value for the specified key

getMethodCallSyntax

java.lang.String getMethodCallSyntax(java.lang.String obj,
                                     java.lang.String method,
                                     java.lang.String[] args)

getOutputStatement

java.lang.String getOutputStatement(java.lang.String toDisplay)

getProgram

java.lang.String getProgram(java.lang.String[] statements)


Copyright © 1999-2008 Apache Software Foundation. All Rights Reserved.