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

frege.scriptengine.FregeScriptEngineFactory Maven / Gradle / Ivy

package frege.scriptengine;

import java.util.Arrays;
import java.util.List;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineFactory;

public class FregeScriptEngineFactory implements ScriptEngineFactory {

	private static final List NAMES = Arrays.asList("fr", "frege");

	@Override
	public String getEngineName() {
		return "frege";
	}

	@Override
	public String getEngineVersion() {
		return "1.0";
	}

	@Override
	public List getExtensions() {
		return NAMES;
	}

	@Override
	public List getMimeTypes() {
		return Arrays.asList("");
	}

	@Override
	public List getNames() {
		return NAMES;
	}

	@Override
	public String getLanguageName() {
		return "frege";
	}

	@Override
	public String getLanguageVersion() {
		return frege.Version.version;
	}

	@Override
	public Object getParameter(final String key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getMethodCallSyntax(final String obj, final String m, final String... args) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getOutputStatement(final String toDisplay) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getProgram(final String... statements) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ScriptEngine getScriptEngine() {
		try {
			return new FregeScriptEngine(this);
		} catch (final Throwable e) {
			e.printStackTrace();
		}
		return null;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy