public final class VersionFinder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VersionFinder.OperatingSystem
The operating system type.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
JAVA_IS_EA_VERSION
Java is EA release -- true for "11-ea", etc.
|
static int |
JAVA_MAJOR_VERSION
Java major version -- 7 for "1.7", 8 for "1.8.0_244", 9 for "9", 11 for "11-ea", etc.
|
static int |
JAVA_MINOR_VERSION
Java minor version -- 0 for "11.0.4"
|
static int |
JAVA_SUB_VERSION
Java minor version -- 4 for "11.0.4"
|
static java.lang.String |
JAVA_VERSION
Java version string.
|
static VersionFinder.OperatingSystem |
OS
The operating system type.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getProperty(java.lang.String propName)
Get a system property (returning null if a SecurityException was thrown).
|
static java.lang.String |
getProperty(java.lang.String propName,
java.lang.String defaultVal)
Get a system property (returning null if a SecurityException was thrown).
|
static java.lang.String |
getVersion()
Get the version number of ClassGraph.
|
public static final VersionFinder.OperatingSystem OS
public static final java.lang.String JAVA_VERSION
public static final int JAVA_MAJOR_VERSION
public static final int JAVA_MINOR_VERSION
public static final int JAVA_SUB_VERSION
public static final boolean JAVA_IS_EA_VERSION
public static java.lang.String getProperty(java.lang.String propName)
propName - the property namepublic static java.lang.String getProperty(java.lang.String propName,
java.lang.String defaultVal)
propName - the property namedefaultVal - the default value for the propertypublic static java.lang.String getVersion()