public class Module extends SimpleBindings implements RequireFunction
| Constructor and Description |
|---|
Module(jdk.nashorn.api.scripting.NashornScriptEngine engine,
Folder folder,
ModuleCache cache,
String filename,
Bindings module,
Bindings exports,
Module parent,
Module main) |
| Modifier and Type | Method and Description |
|---|---|
Object |
require(String module) |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Module(jdk.nashorn.api.scripting.NashornScriptEngine engine,
Folder folder,
ModuleCache cache,
String filename,
Bindings module,
Bindings exports,
Module parent,
Module main)
throws ScriptException
ScriptExceptionpublic Object require(String module) throws ScriptException
require in interface RequireFunctionScriptExceptionCopyright © 2017. All rights reserved.