org.yestech.lib.runtime
Class Jvm

java.lang.Object
  extended by org.yestech.lib.runtime.Jvm

public final class Jvm
extends java.lang.Object

Version:
$Revision: $
Author:
$Author: $

Field Summary
static org.yestech.lib.runtime.Jvm.JvmVersion VERSION
          Version info is parsed from system properties and stored here.
 
Method Summary
static void assertIsIbm()
           
static int getMajorVersion()
          Get major version (ie 2 in 1.2.3)
static int getMegaVersion()
          Get mega version (ie 1 in 1.2.3)
static int getMinorVersion()
          Get minor version (ie 3 in 1.2.3)
static java.lang.String getPatchLevel()
          Get patch level (ie 12 in 1.4.2_12)
static boolean isAzul()
          True if Azul
static boolean isIBM()
          True if IBM JDK
static boolean isJDK14()
          True if mega/major is 1.4
static boolean isJDK15()
          True if mega/major is 1.5
static boolean isJDK15Compliant()
          True if JDK is 1.5+
static boolean isJDK16()
          True if mega/major is 1.6
static boolean isJDK16Compliant()
          True if JDK is 1.6+
static boolean isJDK17()
          True if mega/major is 1.7
static boolean isJRockit()
          True if JRockit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final org.yestech.lib.runtime.Jvm.JvmVersion VERSION
Version info is parsed from system properties and stored here.

Method Detail

getMegaVersion

public static int getMegaVersion()
Get mega version (ie 1 in 1.2.3)

Returns:
Mega version

getMajorVersion

public static int getMajorVersion()
Get major version (ie 2 in 1.2.3)

Returns:
Major version

getMinorVersion

public static int getMinorVersion()
Get minor version (ie 3 in 1.2.3)

Returns:
Minor version

getPatchLevel

public static java.lang.String getPatchLevel()
Get patch level (ie 12 in 1.4.2_12)

Returns:
Patch level

isJDK14

public static boolean isJDK14()
True if mega/major is 1.4

Returns:
True if 1.4

isJDK15

public static boolean isJDK15()
True if mega/major is 1.5

Returns:
True if 1.5

isJDK16

public static boolean isJDK16()
True if mega/major is 1.6

Returns:
True if 1.6

isJDK17

public static boolean isJDK17()
True if mega/major is 1.7

Returns:
True if 1.7

isJDK15Compliant

public static boolean isJDK15Compliant()
True if JDK is 1.5+

Returns:
True if JDK 1.5/1.6/1.7

isJDK16Compliant

public static boolean isJDK16Compliant()
True if JDK is 1.6+

Returns:
True if JDK 1.6/1.7

isIBM

public static boolean isIBM()
True if IBM JDK

Returns:
True if IBM JDK

assertIsIbm

public static void assertIsIbm()

isJRockit

public static boolean isJRockit()
True if JRockit

Returns:
True if BEA Jrockit VM

isAzul

public static boolean isAzul()
True if Azul

Returns:
True if Azul VM


Copyright © 2009 YES Technology Association. All Rights Reserved.