public final class PlatformDescription extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
ANDROID_VERSION |
Android version.
|
static String |
DALVIK |
JVM_NAME prefix for Dalvik/Android
|
static String |
GAE_VERSION |
Google App Engine version or null is we are not on GAE
|
static String |
GNU |
JVM_NAME prefix for GCJ
|
static String |
HOTSPOT |
JVM_NAME prefix for Java HotSpot
|
static boolean |
IS_ANDROID_OPENJDK |
Flag telling if this version of Android is based on the OpenJDK
|
static String |
JROCKIT |
JVM_NAME prefix for JRockit
|
static String |
JVM_NAME |
JVM name
|
static String |
OPENJDK |
JVM_NAME prefix for the OpenJDK
|
static String |
PERC |
JVM_NAME prefix for Aonix PERC
|
static String |
SPECIFICATION_VERSION |
Java specification version
|
static String |
SUN |
Deprecated.
Use
HOTSPOT instead |
static String |
VENDOR |
VM vendor name
|
static String |
VENDOR_VERSION |
VM vendor version
|
static String |
VM_INFO |
JVM version
|
static String |
VM_VERSION |
JVM version
|
Modifier and Type | Method | Description |
---|---|---|
static String |
describePlatform() |
Describes the platform.
|
static boolean |
isAfterJigsaw() |
|
static boolean |
isAndroidOpenJDK() |
Check if this JVM is an Android JVM based on OpenJDK.
|
static boolean |
isGoogleAppEngine() |
|
static boolean |
isThisJVM(String name) |
Check if the current JVM is of the type passed in parameter.
|
public static final String JROCKIT
public static final String GNU
public static final String HOTSPOT
@Deprecated public static final String SUN
HOTSPOT
insteadpublic static final String OPENJDK
public static final String PERC
public static final String DALVIK
public static final String SPECIFICATION_VERSION
public static final String VM_VERSION
public static final String VM_INFO
public static final String VENDOR_VERSION
public static final String VENDOR
public static final String JVM_NAME
public static final int ANDROID_VERSION
public static final boolean IS_ANDROID_OPENJDK
public static final String GAE_VERSION
public static String describePlatform()
public static boolean isThisJVM(String name)
System.getProperty("java.vm.name").startWith(name)
.name
- jvm name we are looking forpublic static boolean isAndroidOpenJDK()
public static boolean isAfterJigsaw()
public static boolean isGoogleAppEngine()
Copyright © 2006–2018 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.