All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.script.ScriptEngineManager Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package javax.script;

import javax.script.jtransc.impl.JSJtranscScriptEngine;
import java.util.List;

public class ScriptEngineManager {
	public ScriptEngineManager() {
	}

	public ScriptEngineManager(ClassLoader loader) {
	}

	native public void setBindings(Bindings bindings);

	native public Bindings getBindings();

	native public void put(String key, Object value);

	native public Object get(String key);

	public ScriptEngine getEngineByName(String shortName) {
		return new JSJtranscScriptEngine();
	}

	public ScriptEngine getEngineByExtension(String extension) {
		return new JSJtranscScriptEngine();
	}

	public ScriptEngine getEngineByMimeType(String mimeType) {
		return new JSJtranscScriptEngine();
	}

	native public List getEngineFactories();

	native public void registerEngineName(String name, ScriptEngineFactory factory);

	native public void registerEngineMimeType(String type, ScriptEngineFactory factory);

	native public void registerEngineExtension(String extension, ScriptEngineFactory factory);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy