Class PlatformUtil
java.lang.Object
com.ibm.wala.util.PlatformUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
static String[]
getJDKModules
(boolean justBase) Gets the standard JDK modules shipped with the running JDKstatic Path
getPathForJDKModule
(String moduleName) Returns the filesystem path for a JDK module from the running JVMstatic boolean
onIKVM()
are we running on IKVM?static boolean
onLinux()
are we running on Linux?static boolean
onMacOSX()
are we running on Mac OS X?static boolean
are we running on Windows?
-
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? -
getJDKModules
Gets the standard JDK modules shipped with the running JDK- Parameters:
justBase
- iftrue
, only include the file corresponding to thejava.base
module- Returns:
- array of
.jmod
module files - Throws:
IllegalStateException
- if modules cannot be found
-
getPathForJDKModule
-
getJavaRuntimeVersion
public static int getJavaRuntimeVersion()- Returns:
- the major version of the Java runtime we are running on.
-