blob: 0130d278ea452d0ed3d7a213d6a913031e72be3b [file] [log] [blame]
package javax.script;
/**
* ScriptEngineInfo interface contains methods whose return values
* describing the implementation of the Scripting Engine.
*
* @author Nandika Jayawardana <nandika@opensource.lk>
* @author Sanka Samaranayake <sanka@opensource.lk>
*/
public interface ScriptEngineInfo {
/**
* Retrieves the full name of the ScriptEngine.
*
* @return the name of the Script Engine
*/
public String getEngineName();
/**
* Retrieves the version of the Script Engine.
*
* @return the version of the Script Engine
*/
public String getEngineVersion();
/**
* Retrieves the name of the language supported by the
* ScriptEngine.
*
* @return the name of the supported language
*/
public String getLanguageName();
/**
* Retrieves the version of the language supported by the
* ScriptEngine.
*
* @return the version of the supported language
*/
public String getLanguageVersion();
/**
* Retrieves an array of Strings which are file extensions
* tipically used for files containing scripts written in the
* language supported by the ScriptEngine.
*
* @return string array of supported file extensions
*/
public String[] getExtensions();
/**
* Retrieves an array of Strings containing MIME types describing
* the content which can be processed using the Script Engine.
*
* @return string array of MIME types
*/
public String[] getMimeTypes();
/**
* Retrieves an array of short descriptive names such as
* {"javascript", "rhino"} describing the language supported by
* the Script Engine.
*
* @return an array of short descriptive names describing the
* language supported by the ScriptEngine
*/
public String[] getName();
/**
* Retrieves an associated value for the specified key. Returns
* null if the ScriptEngine does not have an associated value for
* the key.
*
* @return associated value for the specified key
*/
public Object getParameter(Object key);
}