public class Constants extends Object implements InternalNodeModule
| Modifier and Type | Field and Description |
|---|---|
static String |
EACCES |
static String |
EADDRINUSE |
static String |
EBADF |
static String |
ECONNREFUSED |
static String |
EEXIST |
static String |
EILSEQ |
static String |
EINTR |
static String |
EINVAL |
static String |
EIO |
static String |
EISDIR |
static String |
ENOENT |
static String |
ENOTDIR |
static String |
ENOTEMPTY |
static String |
ENOTFOUND |
static String |
EOF |
static String |
EPERM |
static String |
EPIPE |
static String |
ESRCH |
static int |
O_APPEND |
static int |
O_CREAT |
static int |
O_DIRECTORY |
static int |
O_EXCL |
static int |
O_NOCTTY |
static int |
O_NOFOLLOW |
static int |
O_RDONLY |
static int |
O_RDWR |
static int |
O_SYNC |
static int |
O_TRUNC |
static int |
O_WRONLY |
static int |
S_IFBLK |
static int |
S_IFCHR |
static int |
S_IFDIR |
static int |
S_IFIFO |
static int |
S_IFLNK |
static int |
S_IFMT |
static int |
S_IFREG |
static int |
S_IFSOCK |
static int |
S_IRGRP |
static int |
S_IROTH |
static int |
S_IRUSR |
static int |
S_IWGRP |
static int |
S_IWOTH |
static int |
S_IWUSR |
static int |
S_IXGRP |
static int |
S_IXOTH |
static int |
S_IXUSR |
static String |
SIGHUP |
static String |
SIGINT |
static String |
SIGKILL |
static String |
SIGQUIT |
static String |
SIGTERM |
| Constructor and Description |
|---|
Constants() |
| Modifier and Type | Method and Description |
|---|---|
String |
getModuleName()
Return the top-level name of the module as it'd be looked up in a "require" call.
|
org.mozilla.javascript.Scriptable |
registerExports(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
NodeRuntime runner)
Register integer constants that are required by lots of node code -- mainly OS-level stuff.
|
public static final int O_APPEND
public static final int O_CREAT
public static final int O_DIRECTORY
public static final int O_EXCL
public static final int O_NOCTTY
public static final int O_NOFOLLOW
public static final int O_RDONLY
public static final int O_RDWR
public static final int O_SYNC
public static final int O_TRUNC
public static final int O_WRONLY
public static final int S_IFDIR
public static final int S_IFREG
public static final int S_IFBLK
public static final int S_IFCHR
public static final int S_IFLNK
public static final int S_IFIFO
public static final int S_IFSOCK
public static final int S_IFMT
public static final String EACCES
public static final String EADDRINUSE
public static final String EBADF
public static final String ECONNREFUSED
public static final String EINTR
public static final String EEXIST
public static final String EINVAL
public static final String EIO
public static final String EILSEQ
public static final String EISDIR
public static final String ENOTFOUND
public static final String ENOENT
public static final String ENOTDIR
public static final String ENOTEMPTY
public static final String EOF
public static final String EPERM
public static final String EPIPE
public static final String ESRCH
public static final String SIGHUP
public static final String SIGINT
public static final String SIGKILL
public static final String SIGQUIT
public static final String SIGTERM
public static final int S_IRUSR
public static final int S_IWUSR
public static final int S_IXUSR
public static final int S_IRGRP
public static final int S_IWGRP
public static final int S_IXGRP
public static final int S_IROTH
public static final int S_IWOTH
public static final int S_IXOTH
public String getModuleName()
NodeModulegetModuleName in interface NodeModulepublic org.mozilla.javascript.Scriptable registerExports(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
NodeRuntime runner)
throws InvocationTargetException,
IllegalAccessException,
InstantiationException
registerExports in interface NodeModulecx - The Rhino context for the current script and threadscope - The global scope for the scriptrunner - an object that may be used to interact with the script runtimeInvocationTargetExceptionIllegalAccessExceptionInstantiationExceptionCopyright © 2016 Apigee Corporation. All Rights Reserved.