Package org.pkl.core
Class Release
- java.lang.Object
-
- org.pkl.core.Release
-
public class Release extends java.lang.ObjectInformation about the Pkl release that the current program runs on. This class is the Java equivalent of standard library modulepkl.release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelease.DocumentationThe documentation of a Pkl release.static classRelease.SourceCodeThe source code of a Pkl release.static classRelease.StandardLibraryThe standard library of a Pkl release.
-
Constructor Summary
Constructors Constructor Description Release(Version version, java.lang.String os, java.lang.String flavor, java.lang.String versionInfo, java.lang.String commitId, Release.SourceCode sourceCode, Release.Documentation documentation, Release.StandardLibrary standardLibrary)Constructs a release.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcommitId()The Git commit ID of this release.static Releasecurrent()The Pkl release that the current program runs on.Release.Documentationdocumentation()The documentation of this release.booleanequals(java.lang.Object obj)java.lang.Stringflavor()The flavor of this release (native, or Java and JVM version).inthashCode()java.lang.Stringos()The operating system (name and version) this release is running on.Release.SourceCodesourceCode()The source code of this release.Release.StandardLibrarystandardLibrary()The standard library of this release.Versionversion()The version of this release.java.lang.StringversionInfo()The output ofpkl --versionfor this release.
-
-
-
Constructor Detail
-
Release
public Release(Version version, java.lang.String os, java.lang.String flavor, java.lang.String versionInfo, java.lang.String commitId, Release.SourceCode sourceCode, Release.Documentation documentation, Release.StandardLibrary standardLibrary)
Constructs a release.
-
-
Method Detail
-
current
public static Release current()
The Pkl release that the current program runs on.
-
version
public Version version()
The version of this release.
-
os
public java.lang.String os()
The operating system (name and version) this release is running on.
-
flavor
public java.lang.String flavor()
The flavor of this release (native, or Java and JVM version).
-
versionInfo
public java.lang.String versionInfo()
The output ofpkl --versionfor this release.
-
commitId
public java.lang.String commitId()
The Git commit ID of this release.
-
sourceCode
public Release.SourceCode sourceCode()
The source code of this release.
-
documentation
public Release.Documentation documentation()
The documentation of this release.
-
standardLibrary
public Release.StandardLibrary standardLibrary()
The standard library of this release.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-