public class NodeJSRequire
extends java.lang.Object
Constructor and Description |
---|
NodeJSRequire() |
Modifier and Type | Method and Description |
---|---|
static NodeJSRequire |
get() |
static void |
init() |
static void |
reset() |
java.net.URL |
resolve(java.lang.String arg,
java.net.URL location)
A wrapper around the 'require.resolve' function of nodejs.
|
public static NodeJSRequire get()
public static void init()
public static void reset()
public java.net.URL resolve(java.lang.String arg, java.net.URL location)
If 'require.resolve' could not resolve the given string, 'null' is returned.
arg
- as the thing to resolvelocation
- as the location the resolution should start fromCopyright © 2009-2019 Aarhus University