Package org.pkl.core
Class Platform
- java.lang.Object
-
- org.pkl.core.Platform
-
public final class Platform extends java.lang.ObjectInformation about the Pkl release that the current program runs on. This class is the Java equivalent of standard library modulepkl.platform.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlatform.LanguageThe language implementation of a platform.static classPlatform.OperatingSystemThe operating system of a platform.static classPlatform.ProcessorThe processor of a platform.static classPlatform.RuntimeThe language runtime of a platform.static classPlatform.VirtualMachineThe virtual machine of a platform.
-
Constructor Summary
Constructors Constructor Description Platform(Platform.Language language, Platform.Runtime runtime, Platform.VirtualMachine virtualMachine, Platform.OperatingSystem operatingSystem, Platform.Processor processor)Constructs a platform.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Platformcurrent()The Pkl release that the current program runs on.booleanequals(java.lang.Object obj)inthashCode()Platform.Languagelanguage()The language implementation of this platform.Platform.OperatingSystemoperatingSystem()The operating system of this platform.Platform.Processorprocessor()The processor of this platform.Platform.Runtimeruntime()The language runtime of this platform.Platform.VirtualMachinevirtualMachine()The virtual machine of this platform.
-
-
-
Constructor Detail
-
Platform
public Platform(Platform.Language language, Platform.Runtime runtime, Platform.VirtualMachine virtualMachine, Platform.OperatingSystem operatingSystem, Platform.Processor processor)
Constructs a platform.
-
-
Method Detail
-
current
public static Platform current()
The Pkl release that the current program runs on.
-
language
public Platform.Language language()
The language implementation of this platform.
-
runtime
public Platform.Runtime runtime()
The language runtime of this platform.
-
virtualMachine
public Platform.VirtualMachine virtualMachine()
The virtual machine of this platform.
-
operatingSystem
public Platform.OperatingSystem operatingSystem()
The operating system of this platform.
-
processor
public Platform.Processor processor()
The processor of this platform.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-