@HashCodeAndEqualsPlugin.Enhance public static class ClassFileVersion.VersionLocator.ForJava9CapableVm extends java.lang.Object implements ClassFileVersion.VersionLocator
ClassFileVersion.VersionLocator.CreationAction, ClassFileVersion.VersionLocator.ForJava9CapableVm, ClassFileVersion.VersionLocator.ForLegacyVm| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
current
The
java.lang.Runtime#version() method. |
private java.lang.reflect.Method |
major
The
java.lang.Runtime.Version#major() method. |
private static java.lang.Object |
STATIC_METHOD
Indicates that a reflective method call invokes a static method.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ForJava9CapableVm(java.lang.reflect.Method current,
java.lang.reflect.Method major)
Creates a new version locator for a Java 9 capable VM.
|
| Modifier and Type | Method and Description |
|---|---|
ClassFileVersion |
locate()
Locates the current VM's major version number.
|
private static final java.lang.Object STATIC_METHOD
private final java.lang.reflect.Method current
java.lang.Runtime#version() method.private final java.lang.reflect.Method major
java.lang.Runtime.Version#major() method.protected ForJava9CapableVm(java.lang.reflect.Method current,
java.lang.reflect.Method major)
current - The java.lang.Runtime#version() method.major - The java.lang.Runtime.Version#major() method.public ClassFileVersion locate()
locate in interface ClassFileVersion.VersionLocator