Package org.pkl.core

Class Release

java.lang.Object
org.pkl.core.Release

public final class Release extends Object
Information about the Pkl release that the current program runs on. This class is the Java equivalent of standard library module pkl.release.
  • Constructor Details

  • Method Details

    • 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 String os()
      The operating system (name and version) this release is running on.
    • flavor

      public String flavor()
      The flavor of this release (native, or Java and JVM version).
    • versionInfo

      public String versionInfo()
      The output of pkl --version for this release.
    • commitId

      public 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(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object