Class PlatformUtil

java.lang.Object
com.ibm.wala.util.PlatformUtil

public class PlatformUtil extends Object
Platform-specific utility functions.
  • Constructor Details

    • PlatformUtil

      public PlatformUtil()
  • Method Details

    • onMacOSX

      public static boolean onMacOSX()
      are we running on Mac OS X?
    • onLinux

      public static boolean onLinux()
      are we running on Linux?
    • onWindows

      public static boolean onWindows()
      are we running on Windows?
    • onIKVM

      public static boolean onIKVM()
      are we running on IKVM?
    • getJDKModuleNames

      public static String[] getJDKModuleNames(boolean justBase)
      Gets the standard JDK module names exposed by the running JDK image.
      Parameters:
      justBase - if true, only include java.base
      Returns:
      array of module names from the jrt:/modules filesystem
    • getJavaRuntimeVersion

      public static int getJavaRuntimeVersion()
      Returns:
      the major version of the Java runtime we are running on.
    • getJrtFileSystem

      public static FileSystem getJrtFileSystem()
      Returns the shared jrt:/ filesystem for this JVM. Callers should not close it.