Package org.jruby.platform
Class Platform
java.lang.Object
org.jruby.platform.Platform
- Direct Known Subclasses:
NTPlatform,SolarisPlatform,UnixPlatform,UnsupportedPlatform
Platform specific constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final intstatic final intprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Platformstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final Stringprivate static final Stringstatic final intstatic final Stringprivate static final Stringprivate static final Stringprivate static final Stringstatic final StringDeprecated.static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract long[]getGroups(IRubyObject recv) static Platformstatic StringgetProperty(String property, String defValue) An extension overSystem.getPropertymethod.private static Stringprivate static Stringprivate static Platformstatic void
-
Field Details
-
DARWIN
- See Also:
-
WINDOWS
- See Also:
-
LINUX
- See Also:
-
FREEBSD
- See Also:
-
DRAGONFLYBSD
- See Also:
-
OPENBSD
- See Also:
-
SOLARIS
- See Also:
-
OPENVMS
- See Also:
-
GCJ
- See Also:
-
IBM
- See Also:
-
OPENJ9
- See Also:
-
OS_NAMES
Deprecated. -
ARCH_NAMES
Deprecated. -
ARCH
-
OS
-
JVM
-
OS_VERSION
-
IS_WINDOWS
public static final boolean IS_WINDOWS -
IS_MAC
public static final boolean IS_MAC -
IS_FREEBSD
public static final boolean IS_FREEBSD -
IS_DRAGONFLYBSD
public static final boolean IS_DRAGONFLYBSD -
IS_OPENBSD
public static final boolean IS_OPENBSD -
IS_LINUX
public static final boolean IS_LINUX -
IS_WSL
public static final boolean IS_WSL -
IS_SOLARIS
public static final boolean IS_SOLARIS -
IS_BSD
public static final boolean IS_BSD -
IS_OPENVMS
public static final boolean IS_OPENVMS -
NAME
-
BIG_ENDIAN
public static final int BIG_ENDIAN- See Also:
-
LITTLE_ENDIAN
public static final int LITTLE_ENDIAN- See Also:
-
BYTE_ORDER
public static final int BYTE_ORDER -
IS_GCJ
public static final boolean IS_GCJ -
IS_J9
public static final boolean IS_J9 -
IS_IBM
public static final boolean IS_IBM -
INSTANCE
-
-
Constructor Details
-
Platform
protected Platform()
-
-
Method Details
-
getPlatform
-
main
-
getPackageName
-
getOSPackageName
-
initOperatingSystem
-
initArchitecture
-
initPlatform
-
getProperty
An extension overSystem.getPropertymethod. Handles security restrictions, and returns the default value if the access to the property is restricted.- Parameters:
property- The system property name.defValue- The default value.- Returns:
- The value of the system property, or the default value.
-
getGroups
-