| Modifier and Type | Field and Description |
|---|---|
| public static final OS | |
| public static final OS | |
| private final String | pattern
Name to match against os.name System property for identification (os.name.startswith(pattern)). |
| public static final OS | |
| private final String[][] | shellCommands
An array of potential shell commands this platform may use. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | Returns: the corresponding value ordefaultValue.to access in the environment. name, String to return if defaultValue)name is not defined or "" or access is forbidden.Get the value of an environment variable, or return the given default if the variable is undefined or the security environment prevents access. |
| pack-priv String | |
| pack-priv static OS | |
| pack-priv String[][] | |
| public static OS | |
| public static OS[] |
| IBMi | back to summary |
|---|---|
| public static final OS IBMi | |
| NT | back to summary |
|---|---|
| public static final OS NT | |
| pattern | back to summary |
|---|---|
| private final String pattern Name to match against os.name System property for identification (os.name.startswith(pattern)). Defaults to name(). | |
| POSIX | back to summary |
|---|---|
| public static final OS POSIX | |
| shellCommands | back to summary |
|---|---|
| private final String[][] shellCommands An array of potential shell commands this platform may use. | |
| OS | back to summary |
|---|---|
| private OS(String pattern, String[]... shellCommands) | |
| OS | back to summary |
|---|---|
| private OS(String[]... shellCommands) | |
| getenv | back to summary |
|---|---|
| private static String getenv(String name, String defaultValue) Get the value of an environment variable, or return the given default if the variable is undefined or the security environment prevents access. An empty string value from the environment is treated as undefined.
This accesses the read-only Java copy of the system environment directly, not
the corresponding value or | |
| getModuleName | back to summary |
|---|---|
| pack-priv String getModuleName() | |
| getOS | back to summary |
|---|---|
| pack-priv static OS getOS() Return the OS we're running on. | |
| getShellCommands | back to summary |
|---|---|
| pack-priv String[][] getShellCommands() | |
| valueOf | back to summary |
|---|---|
| public static OS valueOf(String name) | |
| values | back to summary |
|---|---|
| public static OS[] values() | |