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

org.ssssssss.magicapi.provider.LanguageProvider Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.ssssssss.magicapi.provider;

import java.util.Map;

public interface LanguageProvider {

	/**
	 * 是否支持该语言
	 */
	boolean support(String languageName);

	/**
	 * 执行具体脚本
	 *
	 * @param languageName 语言类型
	 * @param script       脚本内容
	 * @param context      当前环境中的变量信息
	 */
	Object execute(String languageName, String script, Map context) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy