public static enum ClassFileVersion.VersionLocator.ForLegacyVm extends Enum<ClassFileVersion.VersionLocator.ForLegacyVm> implements ClassFileVersion.VersionLocator, PrivilegedAction<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 | Method and Description |
---|---|
ClassFileVersion |
locate()
Locates the current VM's major version number.
|
String |
run() |
static ClassFileVersion.VersionLocator.ForLegacyVm |
valueOf(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
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ClassFileVersion locate()
locate
in interface ClassFileVersion.VersionLocator
public String run()
run
in interface PrivilegedAction<String>
Copyright © 2014–2019. All rights reserved.