Java Script Engine getEngine()

Here you can find the source of getEngine()

Description

get Engine

License

Apache License

Declaration

public static ScriptEngine getEngine() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;

public class Main {
    private static ScriptEngine engine = new ScriptEngineManager().getEngineByMimeType("text/javascript");

    public static ScriptEngine getEngine() {
        return engine;
    }/* w  w  w . j a v a2 s  .c o  m*/
}

Related

  1. createNashornEngine()
  2. evaluateScriptResource(ScriptEngine engine, String resource)
  3. getAppleScriptEngine()
  4. getAvailableEngineGroups()
  5. getDefaultScriptEngineManager()
  6. getEngine(String engineName)
  7. getScriptEngine()
  8. getScriptEngine(final ClassLoader loader, final String... args)
  9. getScriptEngineManager()