Class Platform

java.lang.Object
org.jruby.platform.Platform
Direct Known Subclasses:
NTPlatform, SolarisPlatform, UnixPlatform, UnsupportedPlatform

public abstract class Platform extends Object
Platform specific constants.
  • Field Details

  • Constructor Details

    • Platform

      protected Platform()
  • Method Details

    • getPlatform

      public static Platform getPlatform()
    • main

      public static void main(String[] args)
    • getPackageName

      public String getPackageName()
    • getOSPackageName

      public String getOSPackageName()
    • initOperatingSystem

      private static String initOperatingSystem()
    • initArchitecture

      private static String initArchitecture()
    • initPlatform

      private static Platform initPlatform()
    • getProperty

      public static String 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.
      Parameters:
      property - The system property name.
      defValue - The default value.
      Returns:
      The value of the system property, or the default value.
    • getGroups

      public abstract long[] getGroups(IRubyObject recv)