public final class NodeFlags
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLOW_FS_READ
The constant ALLOW_FS_READ.
|
static java.lang.String |
ALLOW_FS_WRITE
The constant ALLOW_FS_WRITE.
|
static java.lang.String |
EXPERIMENTAL_PERMISSION
The constant EXPERIMENTAL_PERMISSION.
|
static java.lang.String |
EXPERIMENTAL_SQLITE
The constant EXPERIMENTAL_SQLITE.
|
static java.lang.String |
ICU_DATA_DIR
The constant ICU_DATA_DIR.
|
static java.lang.String |
JS_FLOAT_16_ARRAY
The constant JS_FLOAT_16_ARRAY.
|
static java.lang.String |
NO_EXPERIMENTAL_REQUIRE_MODULE
The constant NO_EXPERIMENTAL_REQUIRE_MODULE.
|
static java.lang.String |
NO_WARNINGS
The constant NO_WARNINGS.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAllowFsRead()
This flag configures file system read permissions using the Permission Model.
|
java.lang.String[] |
getAllowFsWrite()
This flag configures file system write permissions using the Permission Model.
|
java.lang.String[] |
getCustomFlags()
Gets custom flags.
|
java.lang.String |
getIcuDataDir()
Gets icu data dir that contains icudt*.dat files.
|
boolean |
isExperimentalPermission()
Enable the Permission Model for current process.
|
boolean |
isExperimentalSqlite()
Is the experimental node:sqlite module enabled.
|
boolean |
isJsFloat16Array()
Is js float 16 array enabled.
|
boolean |
isNoExperimentalRequireModule()
Does not support loading a synchronous ES module graph in require().
|
boolean |
isNoWarnings()
Silence all process warnings (including deprecations).
|
boolean |
isSealed()
Is sealed.
|
NodeFlags |
seal()
Seal the Node flags so that it is read-only.
|
NodeFlags |
setAllowFsRead(java.lang.String[] allowFsRead)
Sets allow fs read.
|
NodeFlags |
setAllowFsWrite(java.lang.String[] allowFsWrite)
Sets allow fs write.
|
NodeFlags |
setCustomFlags(java.lang.String[] customFlags)
Sets custom flags (space separated).
|
NodeFlags |
setExperimentalPermission(boolean experimentalPermission)
Sets experimental permission.
|
NodeFlags |
setExperimentalSqlite(boolean experimentalSqlite)
Sets experimental sqlite.
|
NodeFlags |
setIcuDataDir(java.lang.String icuDataDir)
Sets icu data dir.
|
NodeFlags |
setJsFloat16Array(boolean jsFloat16Array)
Sets js float 16 array.
|
NodeFlags |
setNoExperimentalRequireModule(boolean noExperimentalRequireModule)
Sets no experimental require module.
|
NodeFlags |
setNoWarnings(boolean noWarnings)
Sets no warnings.
|
java.lang.String[] |
toArray()
To string array.
|
java.lang.String |
toString() |
public static final java.lang.String ALLOW_FS_READ
public static final java.lang.String ALLOW_FS_WRITE
public static final java.lang.String EXPERIMENTAL_PERMISSION
public static final java.lang.String NO_EXPERIMENTAL_REQUIRE_MODULE
public static final java.lang.String EXPERIMENTAL_SQLITE
public static final java.lang.String ICU_DATA_DIR
public static final java.lang.String JS_FLOAT_16_ARRAY
public static final java.lang.String NO_WARNINGS
public java.lang.String[] getAllowFsRead()
The valid arguments for the --allow-fs-read flag are:
- To allow all FileSystemRead operations. Multiple paths can be allowed using multiple --allow-fs-read flags. Example --allow-fs-read=/folder1/ --allow-fs-read=/folder1/
public java.lang.String[] getAllowFsWrite()
The valid arguments for the --allow-fs-write flag are:
- To allow all FileSystemWrite operations. Multiple paths can be allowed using multiple --allow-fs-write flags. Example --allow-fs-write=/folder1/ --allow-fs-write=/folder1/
public java.lang.String[] getCustomFlags()
public java.lang.String getIcuDataDir()
public boolean isExperimentalPermission()
File System - manageable through --allow-fs-read, --allow-fs-write flags Child Process - manageable through --allow-child-process flag Worker Threads - manageable through --allow-worker flag WASI - manageable through --allow-wasi flag
public boolean isExperimentalSqlite()
public boolean isJsFloat16Array()
public boolean isNoExperimentalRequireModule()
public boolean isNoWarnings()
public boolean isSealed()
public NodeFlags seal()
public NodeFlags setAllowFsRead(java.lang.String[] allowFsRead)
allowFsRead
- the allow fs readpublic NodeFlags setAllowFsWrite(java.lang.String[] allowFsWrite)
allowFsWrite
- the allow fs writepublic NodeFlags setCustomFlags(java.lang.String[] customFlags)
customFlags
- the custom flagspublic NodeFlags setExperimentalPermission(boolean experimentalPermission)
experimentalPermission
- the experimental permissionpublic NodeFlags setExperimentalSqlite(boolean experimentalSqlite)
experimentalSqlite
- the experimental sqlitepublic NodeFlags setIcuDataDir(java.lang.String icuDataDir)
icuDataDir
- the icu data dirpublic NodeFlags setJsFloat16Array(boolean jsFloat16Array)
jsFloat16Array
- the js float 16 arraypublic NodeFlags setNoExperimentalRequireModule(boolean noExperimentalRequireModule)
noExperimentalRequireModule
- the no experimental require modulepublic NodeFlags setNoWarnings(boolean noWarnings)
noWarnings
- the no warningspublic java.lang.String[] toArray()
public java.lang.String toString()
toString
in class java.lang.Object