| constant | type | note |
|---|---|---|
| CPU | Platform.CPU_TYPE | |
| OS | Platform.OS_TYPE | |
| NAME | String | |
| LIBPREFIX | String | |
| LIBSUFFIX | String | |
| LIBC | String | |
| BIG_ENDIAN | int | |
| LITTLE_ENDIAN | int | |
| BYTE_ORDER | int |
bsd_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv)createPlatformModule(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule FFI)getProperty(String property, String defValue)An extension over System.getProperty method.
Handles security restrictions, and returns the default
value if the access to the property is restricted.
| name | type | description |
|---|---|---|
| property | String | The system property name. |
| def_value | String | The default value. |
Returns: The value of the system property, or the default value.
linux_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv)mac_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv)Gets the current Platform
Returns: The current platform.
solaris_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv)unix_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv)windows_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv)addressMask()Gets the 32/64bit mask of a C address/pointer on the native platform.
Returns: the size of a pointer in bits
addressSize()Gets the size of a C address/pointer on the native platform.
Returns: the size of a pointer in bits
isBSD() · also: is_bsdGets the current processor architecture the JVM is running on.
Returns: A CPU value representing the current processor architecture.
getJavaMajorVersion() · also: get_java_major_versionlongSize()Gets the size of a C 'long' on the native platform.
Returns: the size of a long in bits
mapLibraryName(String libName)getName() · also: get_nameGets the name of this Platform.
Returns: The name of this platform.
Gets the current Operating System.
Returns: A OS value representing the current Operating System.
isSupported() · also: is_supportedisUnix() · also: is_unix