Package org.pkl.core
Class Release
java.lang.Object
org.pkl.core.Release
Information about the Pkl release that the current program runs on. This class is the Java
equivalent of standard library module
pkl.release.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe documentation of a Pkl release.static final classThe source code of a Pkl release.static final classThe standard library of a Pkl release. -
Constructor Summary
ConstructorsConstructorDescriptionRelease(Version version, String os, String flavor, String versionInfo, String commitId, Release.SourceCode sourceCode, Release.Documentation documentation, Release.StandardLibrary standardLibrary) Constructs a release. -
Method Summary
Modifier and TypeMethodDescriptioncommitId()The Git commit ID of this release.static Releasecurrent()The Pkl release that the current program runs on.The documentation of this release.booleanflavor()The flavor of this release (native, or Java and JVM version).inthashCode()os()The operating system (name and version) this release is running on.The source code of this release.The standard library of this release.version()The version of this release.The output ofpkl --versionfor this release.
-
Constructor Details
-
Release
public Release(Version version, String os, String flavor, String versionInfo, String commitId, Release.SourceCode sourceCode, Release.Documentation documentation, Release.StandardLibrary standardLibrary) Constructs a release.
-
-
Method Details
-
current
The Pkl release that the current program runs on. -
version
The version of this release. -
os
The operating system (name and version) this release is running on. -
flavor
The flavor of this release (native, or Java and JVM version). -
versionInfo
The output ofpkl --versionfor this release. -
commitId
The Git commit ID of this release. -
sourceCode
The source code of this release. -
documentation
The documentation of this release. -
standardLibrary
The standard library of this release. -
equals
-
hashCode
public int hashCode()
-