Package org.pkl.core
Class Platform
java.lang.Object
org.pkl.core.Platform
Information about the Pkl release that the current program runs on. This class is the Java
equivalent of standard library module
pkl.platform.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe language implementation of a platform.static final classThe operating system of a platform.static final classThe processor of a platform.static final classThe language runtime of a platform.static final classThe virtual machine of a platform. -
Constructor Summary
ConstructorsConstructorDescriptionPlatform(Platform.Language language, Platform.Runtime runtime, Platform.VirtualMachine virtualMachine, Platform.OperatingSystem operatingSystem, Platform.Processor processor) Constructs a platform. -
Method Summary
Modifier and TypeMethodDescriptionstatic Platformcurrent()The Pkl release that the current program runs on.booleaninthashCode()language()The language implementation of this platform.The operating system of this platform.The processor of this platform.runtime()The language runtime of this platform.The virtual machine of this platform.
-
Constructor Details
-
Platform
public Platform(Platform.Language language, Platform.Runtime runtime, Platform.VirtualMachine virtualMachine, Platform.OperatingSystem operatingSystem, Platform.Processor processor) Constructs a platform.
-
-
Method Details
-
current
The Pkl release that the current program runs on. -
language
The language implementation of this platform. -
runtime
The language runtime of this platform. -
virtualMachine
The virtual machine of this platform. -
operatingSystem
The operating system of this platform. -
processor
The processor of this platform. -
equals
-
hashCode
public int hashCode()
-