javax.script.ScriptEngineManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-js-jre Show documentation
Show all versions of dragome-js-jre Show documentation
Dragome SDK module: js-jre
package javax.script;
public class ScriptEngineManager
{
public ScriptEngine getEngineByName(String engineName)
{
if (!"JavaScript".equals(engineName))
{
throw new IllegalArgumentException("Script of type " + engineName + " not supported");
}
return new ScriptEngineImpl();
}
}