src/share/classes/javax/script/ScriptEngineFactory.java

Print this page
rev 10350 : 8068279: (typo in the spec) javax.script.ScriptEngineFactory.getLanguageName
Reviewed-by: jlaskey, alanb


  68 
  69     /**
  70      * Returns an immutable list of mimetypes, associated with scripts that
  71      * can be executed by the engine.  The list is used by the
  72      * <code>ScriptEngineManager</code> class to implement its
  73      * <code>getEngineByMimetype</code> method.
  74      * @return The list of mime types.
  75      */
  76     public List<String> getMimeTypes();
  77 
  78     /**
  79      * Returns an immutable list of  short names for the <code>ScriptEngine</code>, which may be used to
  80      * identify the <code>ScriptEngine</code> by the <code>ScriptEngineManager</code>.
  81      * For instance, an implementation based on the Mozilla Rhino Javascript engine might
  82      * return list containing {&quot;javascript&quot;, &quot;rhino&quot;}.
  83      * @return an immutable list of short names
  84      */
  85     public List<String> getNames();
  86 
  87     /**
  88      * Returns the name of the scripting langauge supported by this
  89      * <code>ScriptEngine</code>.
  90      * @return The name of the supported language.
  91      */
  92     public String getLanguageName();
  93 
  94     /**
  95      * Returns the version of the scripting language supported by this
  96      * <code>ScriptEngine</code>.
  97      * @return The version of the supported language.
  98      */
  99     public String getLanguageVersion();
 100 
 101     /**
 102      * Returns the value of an attribute whose meaning may be implementation-specific.
 103      * Keys for which the value is defined in all implementations are:
 104      * <ul>
 105      * <li>ScriptEngine.ENGINE</li>
 106      * <li>ScriptEngine.ENGINE_VERSION</li>
 107      * <li>ScriptEngine.NAME</li>
 108      * <li>ScriptEngine.LANGUAGE</li>




  68 
  69     /**
  70      * Returns an immutable list of mimetypes, associated with scripts that
  71      * can be executed by the engine.  The list is used by the
  72      * <code>ScriptEngineManager</code> class to implement its
  73      * <code>getEngineByMimetype</code> method.
  74      * @return The list of mime types.
  75      */
  76     public List<String> getMimeTypes();
  77 
  78     /**
  79      * Returns an immutable list of  short names for the <code>ScriptEngine</code>, which may be used to
  80      * identify the <code>ScriptEngine</code> by the <code>ScriptEngineManager</code>.
  81      * For instance, an implementation based on the Mozilla Rhino Javascript engine might
  82      * return list containing {&quot;javascript&quot;, &quot;rhino&quot;}.
  83      * @return an immutable list of short names
  84      */
  85     public List<String> getNames();
  86 
  87     /**
  88      * Returns the name of the scripting language supported by this
  89      * <code>ScriptEngine</code>.
  90      * @return The name of the supported language.
  91      */
  92     public String getLanguageName();
  93 
  94     /**
  95      * Returns the version of the scripting language supported by this
  96      * <code>ScriptEngine</code>.
  97      * @return The version of the supported language.
  98      */
  99     public String getLanguageVersion();
 100 
 101     /**
 102      * Returns the value of an attribute whose meaning may be implementation-specific.
 103      * Keys for which the value is defined in all implementations are:
 104      * <ul>
 105      * <li>ScriptEngine.ENGINE</li>
 106      * <li>ScriptEngine.ENGINE_VERSION</li>
 107      * <li>ScriptEngine.NAME</li>
 108      * <li>ScriptEngine.LANGUAGE</li>