public abstract class Platform
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCH |
static java.util.Map<java.lang.String,java.lang.String> |
ARCH_NAMES
Deprecated.
|
static int |
BIG_ENDIAN |
static int |
BYTE_ORDER |
static boolean |
IS_BSD |
static boolean |
IS_DRAGONFLYBSD |
static boolean |
IS_FREEBSD |
static boolean |
IS_GCJ |
static boolean |
IS_IBM |
static boolean |
IS_J9 |
static boolean |
IS_LINUX |
static boolean |
IS_MAC |
static boolean |
IS_OPENBSD |
static boolean |
IS_OPENVMS |
static boolean |
IS_SOLARIS |
static boolean |
IS_WINDOWS |
static boolean |
IS_WSL |
static java.lang.String |
JVM |
static int |
LITTLE_ENDIAN |
static java.lang.String |
NAME |
static java.lang.String |
OS |
static java.util.Map<java.lang.String,java.lang.String> |
OS_NAMES
Deprecated.
|
static java.lang.String |
OS_VERSION |
Modifier | Constructor and Description |
---|---|
protected |
Platform() |
Modifier and Type | Method and Description |
---|---|
abstract long[] |
getGroups(IRubyObject recv) |
java.lang.String |
getOSPackageName() |
java.lang.String |
getPackageName() |
static Platform |
getPlatform() |
static java.lang.String |
getProperty(java.lang.String property,
java.lang.String defValue)
An extension over
System.getProperty method. |
static void |
main(java.lang.String[] args) |
@Deprecated public static final java.util.Map<java.lang.String,java.lang.String> OS_NAMES
@Deprecated public static final java.util.Map<java.lang.String,java.lang.String> ARCH_NAMES
public static final java.lang.String ARCH
public static final java.lang.String OS
public static final java.lang.String JVM
public static final java.lang.String OS_VERSION
public static final boolean IS_WINDOWS
public static final boolean IS_MAC
public static final boolean IS_FREEBSD
public static final boolean IS_DRAGONFLYBSD
public static final boolean IS_OPENBSD
public static final boolean IS_LINUX
public static final boolean IS_WSL
public static final boolean IS_SOLARIS
public static final boolean IS_BSD
public static final boolean IS_OPENVMS
public static final java.lang.String NAME
public static final int BIG_ENDIAN
public static final int LITTLE_ENDIAN
public static final int BYTE_ORDER
public static final boolean IS_GCJ
public static final boolean IS_J9
public static final boolean IS_IBM
public static Platform getPlatform()
public static void main(java.lang.String[] args)
public java.lang.String getPackageName()
public java.lang.String getOSPackageName()
public static java.lang.String getProperty(java.lang.String property, java.lang.String defValue)
System.getProperty
method.
Handles security restrictions, and returns the default
value if the access to the property is restricted.property
- The system property name.defValue
- The default value.public abstract long[] getGroups(IRubyObject recv)
Copyright © 2001-2020 JRuby. All Rights Reserved.