src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/package-info.java

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27  * This package provides the {@code javax.script} integration, which is the preferred way to use Nashorn.
  28  * You will ordinarily do this to obtain an instance of a Nashorn script engine:
  29  * <pre>
  30  * import javax.script.*;
  31  * ...
  32  * ScriptEngine nashornEngine = new ScriptEngineManager().getEngineByName("Nashorn");
  33  * </pre>
  34  * <p>Nashorn script engines implement the optional {@link javax.script.Invocable} and {@link javax.script.Compilable}
  35  * interfaces, allowing for efficient pre-compilation and repeated execution of scripts. In addition,
  36  * this package provides nashorn specific extension classes, interfaces and methods. See
  37  * {@link jdk.nashorn.api.scripting.NashornScriptEngineFactory} for further details.


  38  */

  39 package jdk.nashorn.api.scripting;


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27  * This package provides the {@code javax.script} integration, which is the preferred way to use Nashorn.
  28  * You will ordinarily do this to obtain an instance of a Nashorn script engine:
  29  * <pre>
  30  * import javax.script.*;
  31  * ...
  32  * ScriptEngine nashornEngine = new ScriptEngineManager().getEngineByName("Nashorn");
  33  * </pre>
  34  * <p>Nashorn script engines implement the optional {@link javax.script.Invocable} and {@link javax.script.Compilable}
  35  * interfaces, allowing for efficient pre-compilation and repeated execution of scripts. In addition,
  36  * this package provides nashorn specific extension classes, interfaces and methods. See
  37  * {@link jdk.nashorn.api.scripting.NashornScriptEngineFactory} for further details.
  38  *
  39  * @since 1.8u40
  40  */
  41 @jdk.Exported
  42 package jdk.nashorn.api.scripting;