public static enum ClassFileVersion.VersionLocator.ForLegacyVm extends java.lang.Enum<ClassFileVersion.VersionLocator.ForLegacyVm> implements ClassFileVersion.VersionLocator, java.security.PrivilegedAction<java.lang.String>
java.lang.Runtime.Version class.ClassFileVersion.VersionLocator.CreationAction, ClassFileVersion.VersionLocator.ForJava9CapableVm, ClassFileVersion.VersionLocator.ForLegacyVm| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
JAVA_VERSION_PROPERTY
The system property for this JVM's Java version.
|
| Modifier and Type | Method and Description |
|---|---|
ClassFileVersion |
locate()
Locates the current VM's major version number.
|
java.lang.String |
run() |
static ClassFileVersion.VersionLocator.ForLegacyVm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClassFileVersion.VersionLocator.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassFileVersion.VersionLocator.ForLegacyVm INSTANCE
private static final java.lang.String JAVA_VERSION_PROPERTY
public static ClassFileVersion.VersionLocator.ForLegacyVm[] values()
for (ClassFileVersion.VersionLocator.ForLegacyVm c : ClassFileVersion.VersionLocator.ForLegacyVm.values()) System.out.println(c);
public static ClassFileVersion.VersionLocator.ForLegacyVm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic ClassFileVersion locate()
locate in interface ClassFileVersion.VersionLocatorpublic java.lang.String run()
run in interface java.security.PrivilegedAction<java.lang.String>