public interface JavaInstallationMetadata
JavaLauncher,
JavaCompiler,
JavadocTool| Modifier and Type | Method | Description |
|---|---|---|
Directory |
getInstallationPath() |
The path to installation this tool belongs to.
|
java.lang.String |
getJavaRuntimeVersion() |
Returns the full Java version (including the build number) of the JVM, as specified in its
java.runtime.version property. |
java.lang.String |
getJvmVersion() |
Returns the version of the JVM, as specified in its
java.vm.version property. |
JavaLanguageVersion |
getLanguageVersion() |
Returns the language version of the JVM to which this tool belongs
|
java.lang.String |
getVendor() |
Returns a human-readable string for the vendor of the JVM.
|
boolean |
isCurrentJvm() |
Returns true if this installation corresponds to the build JVM.
|
@Input JavaLanguageVersion getLanguageVersion()
JavaLanguageVersion@Internal java.lang.String getJavaRuntimeVersion()
java.runtime.version property.@Internal java.lang.String getJvmVersion()
java.vm.version property.@Internal java.lang.String getVendor()
@Internal Directory getInstallationPath()
This value matches what would be the content of JAVA_HOME for the given installation.
@Internal @Incubating boolean isCurrentJvm()