cn.nukkit.plugin.js.JSFeature Maven / Gradle / Ivy
package cn.nukkit.plugin.js;
import org.graalvm.polyglot.Context;
import java.util.Collection;
import java.util.Map;
public interface JSFeature {
String getName();
Collection availableModuleNames();
Map generateModule(String moduleName, Context context);
default boolean needsInject() {
return false;
}
default void injectIntoContext(Context context) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy