public final class PlatformDescription
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
ANDROID_VERSION
Android version.
|
static java.lang.String |
DALVIK
JVM_NAME prefix for Dalvik/Android
|
static java.lang.String |
GAE_VERSION
Google App Engine version or null is we are not on GAE
|
static java.lang.String |
GNU
JVM_NAME prefix for GCJ
|
static java.lang.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 java.lang.String |
JROCKIT
JVM_NAME prefix for JRockit
|
static java.lang.String |
JVM_NAME
JVM name
|
static java.lang.String |
OPENJDK
JVM_NAME prefix for the OpenJDK
|
static java.lang.String |
PERC
JVM_NAME prefix for Aonix PERC
|
static java.lang.String |
SPECIFICATION_VERSION
Java specification version
|
static java.lang.String |
SUN
已过时。
Use
HOTSPOT instead |
static java.lang.String |
VENDOR
VM vendor name
|
static java.lang.String |
VENDOR_VERSION
VM vendor version
|
static java.lang.String |
VM_INFO
JVM version
|
static java.lang.String |
VM_VERSION
JVM version
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
describePlatform()
Describes the platform.
|
static boolean |
isAndroidOpenJDK()
Check if this JVM is an Android JVM based on OpenJDK.
|
static boolean |
isGoogleAppEngine() |
static boolean |
isThisJVM(java.lang.String name)
Check if the current JVM is of the type passed in parameter.
|
public static final java.lang.String JROCKIT
public static final java.lang.String GNU
public static final java.lang.String HOTSPOT
@Deprecated public static final java.lang.String SUN
HOTSPOT
insteadpublic static final java.lang.String OPENJDK
public static final java.lang.String PERC
public static final java.lang.String DALVIK
public static final java.lang.String SPECIFICATION_VERSION
public static final java.lang.String VM_VERSION
public static final java.lang.String VM_INFO
public static final java.lang.String VENDOR_VERSION
public static final java.lang.String VENDOR
public static final java.lang.String JVM_NAME
public static final int ANDROID_VERSION
public static final boolean IS_ANDROID_OPENJDK
public static final java.lang.String GAE_VERSION
public static java.lang.String describePlatform()
public static boolean isThisJVM(java.lang.String name)
System.getProperty("java.vm.name").startWith(name)
.name
- jvm name we are looking forpublic static boolean isAndroidOpenJDK()
public static boolean isGoogleAppEngine()