j2s/dead-code/modules/ModuleProvider.java

9 lines
292 B
Java
Raw Normal View History

package me.topchetoeu.jscript.engine.modules;
import java.io.File;
public interface ModuleProvider {
Module getModule(File cwd, String name);
String getRealName(File cwd, String name);
default boolean hasModule(File cwd, String name) { return getRealName(cwd, name) != null; }
2023-08-05 15:37:18 +00:00
}