| Modifier and Type | Class and Description |
|---|---|
| private static class | Platform.
A |
| public static enum | |
| private static class | Platform.
A |
| private static class | |
| private static class | Platform.
A |
| public static enum | |
| private static class | |
| private static class | |
| private static class | |
| private static class | Platform.
A |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| protected final int | |
| private static final int | |
| public static final int | |
| public static final int | |
| public static final Platform. | |
| public static final String | |
| protected final Pattern | |
| public static final String | |
| public static final String | |
| public static final int | |
| private static final Locale | |
| protected final int | |
| public static final String | |
| public static final Platform. |
| Modifier and Type | Method and Description |
|---|---|
| public final long | Returns: the size of a pointer in bitsGets the 32/64bit mask of a C address/pointer on the native platform. |
| public final int | Returns: the size of a pointer in bitsGets the size of a C address/pointer on the native platform. |
| public static IRubyObject | |
| public static void | |
| private static int | |
| private static final Platform. | |
| private static final String | |
| private static final String | |
| private static final Platform. | |
| private static final Platform | |
| public final Platform. | Returns: ACPU value representing the current processor architecture.Gets the current processor architecture the JVM is running on. |
| public final int | |
| public String | |
| public final Platform. | Returns: AOS value representing the current Operating System.Gets the current Operating System. |
| public static final Platform | |
| public static String | Returns: The value of the system property, or the default value.The system property name. property, String The default value. defValue)An extension over |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public static IRubyObject | |
| public final int | |
| public static IRubyObject | |
| public String | |
| public static IRubyObject | |
| private static boolean | |
| public static IRubyObject | |
| public static IRubyObject |
| addressMask | back to summary |
|---|---|
| private final long addressMask | |
| addressSize | back to summary |
|---|---|
| protected final int addressSize | |
| ARCH_DATA_MODEL | back to summary |
|---|---|
| private static final int ARCH_DATA_MODEL | |
| BIG_ENDIAN | back to summary |
|---|---|
| public static final int BIG_ENDIAN | |
| BYTE_ORDER | back to summary |
|---|---|
| public static final int BYTE_ORDER | |
| CPU | back to summary |
|---|---|
| public static final Platform. | |
| LIBC | back to summary |
|---|---|
| public static final String LIBC | |
| libPattern | back to summary |
|---|---|
| protected final Pattern libPattern | |
| LIBPREFIX | back to summary |
|---|---|
| public static final String LIBPREFIX | |
| LIBSUFFIX | back to summary |
|---|---|
| public static final String LIBSUFFIX | |
| LITTLE_ENDIAN | back to summary |
|---|---|
| public static final int LITTLE_ENDIAN | |
| LOCALE | back to summary |
|---|---|
| private static final Locale LOCALE | |
| longSize | back to summary |
|---|---|
| protected final int longSize | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| OS | back to summary |
|---|---|
| public static final Platform. | |
| Platform | back to summary |
|---|---|
| protected Platform(Platform. | |
| addressMask | back to summary |
|---|---|
| public final long addressMask() Gets the 32/64bit mask of a C address/pointer on the native platform.
| |
| addressSize | back to summary |
|---|---|
| public final int addressSize() Gets the size of a C address/pointer on the native platform.
| |
| bsd_p | back to summary |
|---|---|
public static IRubyObject bsd_p(ThreadContext context, IRubyObject recv)
| |
| createPlatformModule | back to summary |
|---|---|
| public static void createPlatformModule(ThreadContext context, RubyModule FFI) | |
| determineArchDataModel | back to summary |
|---|---|
| private static int determineArchDataModel() | |
| determineCPU | back to summary |
|---|---|
| private static final Platform. | |
| determineLibC | back to summary |
|---|---|
| private static final String determineLibC() | |
| determineLibExt | back to summary |
|---|---|
| private static final String determineLibExt() | |
| determineOS | back to summary |
|---|---|
| private static final Platform. | |
| determinePlatform | back to summary |
|---|---|
| private static final Platform determinePlatform(Platform. | |
| getCPU | back to summary |
|---|---|
| public final Platform. Gets the current processor architecture the JVM is running on. | |
| getJavaMajorVersion | back to summary |
|---|---|
| public final int getJavaMajorVersion()
Deprecated
| |
| getName | back to summary |
|---|---|
| public String getName() Gets the name of this
| |
| getOS | back to summary |
|---|---|
| public final Platform. Gets the current Operating System. | |
| getPlatform | back to summary |
|---|---|
| public static final Platform getPlatform() Gets the current
| |
| getProperty | back to summary |
|---|---|
| public static String getProperty(String property, String defValue) An extension over | |
| isBSD | back to summary |
|---|---|
| public final boolean isBSD() | |
| isSupported | back to summary |
|---|---|
| public final boolean isSupported() | |
| isUnix | back to summary |
|---|---|
| public final boolean isUnix() | |
| linux_p | back to summary |
|---|---|
public static IRubyObject linux_p(ThreadContext context, IRubyObject recv)
| |
| longSize | back to summary |
|---|---|
| public final int longSize() Gets the size of a C 'long' on the native platform.
| |
| mac_p | back to summary |
|---|---|
public static IRubyObject mac_p(ThreadContext context, IRubyObject recv)
| |
| mapLibraryName | back to summary |
|---|---|
| public String mapLibraryName(String libName) | |
| solaris_p | back to summary |
|---|---|
public static IRubyObject solaris_p(ThreadContext context, IRubyObject recv)
| |
| startsWithIgnoreCase | back to summary |
|---|---|
| private static boolean startsWithIgnoreCase(String s1, String s2) | |
| unix_p | back to summary |
|---|---|
public static IRubyObject unix_p(ThreadContext context, IRubyObject recv)
| |
| windows_p | back to summary |
|---|---|
public static IRubyObject windows_p(ThreadContext context, IRubyObject recv)
| |
Platform subclass representing the Linux operating system.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| AIX | back to summary |
|---|---|
| public AIX() | |
| mapLibraryName | back to summary |
|---|---|
| public String mapLibraryName(String libName) Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static Platform. | |
| public static Platform. |
| AARCH64 | back to summary |
|---|---|
| public static final Platform. | |
| ARM | back to summary |
|---|---|
| public static final Platform. | |
| I386 | back to summary |
|---|---|
| public static final Platform. | |
| LOONGARCH64 | back to summary |
|---|---|
| public static final Platform. | |
| POWERPC | back to summary |
|---|---|
| public static final Platform. | |
| POWERPC64 | back to summary |
|---|---|
| public static final Platform. | |
| POWERPC64LE | back to summary |
|---|---|
| public static final Platform. | |
| S390X | back to summary |
|---|---|
| public static final Platform. | |
| SPARC | back to summary |
|---|---|
| public static final Platform. | |
| SPARCV9 | back to summary |
|---|---|
| public static final Platform. | |
| UNKNOWN | back to summary |
|---|---|
| public static final Platform. | |
| X86_64 | back to summary |
|---|---|
| public static final Platform. | |
| CPU_TYPE | back to summary |
|---|---|
| private CPU_TYPE() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static Platform. | |
| values | back to summary |
|---|---|
| public static Platform. | |
Platform subclass representing the MacOS system.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| Darwin | back to summary |
|---|---|
| public Darwin() | |
| mapLibraryName | back to summary |
|---|---|
| public String mapLibraryName(String libName) Overrides org.
| |
| Default | back to summary |
|---|---|
| public Default(Platform. | |
Platform subclass representing the Linux operating system.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| Linux | back to summary |
|---|---|
| public Linux() | |
| mapLibraryName | back to summary |
|---|---|
| public String mapLibraryName(String libName) Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. | |
| public static final Platform. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static Platform. | |
| public static Platform. |
| AIX | back to summary |
|---|---|
| public static final Platform. | |
| DARWIN | back to summary |
|---|---|
| public static final Platform. | |
| DRAGONFLYBSD | back to summary |
|---|---|
| public static final Platform. | |
| FREEBSD | back to summary |
|---|---|
| public static final Platform. | |
| LINUX | back to summary |
|---|---|
| public static final Platform. | |
| NETBSD | back to summary |
|---|---|
| public static final Platform. | |
| OPENBSD | back to summary |
|---|---|
| public static final Platform. | |
| SOLARIS | back to summary |
|---|---|
| public static final Platform. | |
| UNKNOWN | back to summary |
|---|---|
| public static final Platform. | |
| WINDOWS | back to summary |
|---|---|
| public static final Platform. | |
| OS_TYPE | back to summary |
|---|---|
| private OS_TYPE() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static Platform. | |
| values | back to summary |
|---|---|
| public static Platform. | |
| Access | Constructor and Description |
|---|---|
| private |
| PLATFORM | back to summary |
|---|---|
| private static final Platform PLATFORM | |
| SingletonHolder | back to summary |
|---|---|
| private SingletonHolder() | |
| Supported | back to summary |
|---|---|
| public Supported(Platform. | |
| Access | Constructor and Description |
|---|---|
| public |
| Unsupported | back to summary |
|---|---|
| public Unsupported(Platform. | |
Platform subclass representing the Windows system.
| Access | Constructor and Description |
|---|---|
| public |
| Windows | back to summary |
|---|---|
| public Windows() | |