Package net.bytebuddy
Interface ClassFileVersion.VersionLocator
-
- All Known Implementing Classes:
ClassFileVersion.VersionLocator.Resolved
,ClassFileVersion.VersionLocator.Unresolved
- Enclosing class:
- ClassFileVersion
protected static interface ClassFileVersion.VersionLocator
A locator for the executing VM's Java version.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ClassFileVersion.VersionLocator.Resolved
A version locator for a resolved class file version.static class
ClassFileVersion.VersionLocator.Resolver
A resolver for the current VM's class file version.static class
ClassFileVersion.VersionLocator.Unresolved
An unresolved version locator.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EARLY_ACCESS
A suffix that might indicate an early access version of Java.static java.lang.String
INTERNAL
A suffix that might indicate an internal version of Java.static java.lang.String
JAVA_VERSION
The property for reading the current VM's Java version.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassFileVersion
resolve()
Locates the current VM's major version number.
-
-
-
Field Detail
-
EARLY_ACCESS
static final java.lang.String EARLY_ACCESS
A suffix that might indicate an early access version of Java.- See Also:
- Constant Field Values
-
INTERNAL
static final java.lang.String INTERNAL
A suffix that might indicate an internal version of Java.- See Also:
- Constant Field Values
-
JAVA_VERSION
static final java.lang.String JAVA_VERSION
The property for reading the current VM's Java version.- See Also:
- Constant Field Values
-
-
Method Detail
-
resolve
ClassFileVersion resolve()
Locates the current VM's major version number.- Returns:
- The current VM's major version number.
-
-