Package com.vaadin.flow.internal
Class Platform
java.lang.Object
com.vaadin.flow.internal.Platform
Platform contains information about system architecture and OS.
Derived from eirslett/frontend-maven-plugin
For internal use only. May be renamed or removed in a future release.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlatform(Platform.OS os, com.vaadin.flow.internal.Platform.Architecture architecture) Construct a new Platform.Platform(Platform.OS os, com.vaadin.flow.internal.Platform.Architecture architecture, String classifier) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.internal.Platform.ArchitectureGet platform architecture.Get the archive extension used with this platform.Get the codename used with this Platform.getNodeClassifier(FrontendVersion nodeVersion) Get the node classifier for current platform.getOs()Get platform OS.static Platformguess()Create a Platform and figure out OS and Architecture.booleanisLinux()Check if platform is linux.booleanisMac()Check if platform is mac.booleanCheck if the current platform is experimental for Node.js.booleanCheck if platform is windows.
-
Field Details
-
ALPINE_RELEASE_FILE_PATH
- See Also:
-
-
Constructor Details
-
Platform
Construct a new Platform.- Parameters:
os- platform OSarchitecture- platform Architecture
-
Platform
public Platform(Platform.OS os, com.vaadin.flow.internal.Platform.Architecture architecture, String classifier)
-
-
Method Details
-
guess
Create a Platform and figure out OS and Architecture.- Returns:
- platform instance
-
getArchiveExtension
Get the archive extension used with this platform.- Returns:
- archive extension
-
getCodename
Get the codename used with this Platform.- Returns:
- codename
-
isWindows
public boolean isWindows()Check if platform is windows.- Returns:
- true if windows
-
isMac
public boolean isMac()Check if platform is mac.- Returns:
- true if mac
-
isLinux
public boolean isLinux()Check if platform is linux.- Returns:
- true if linux
-
getArchitecture
public com.vaadin.flow.internal.Platform.Architecture getArchitecture()Get platform architecture.- Returns:
- architecture
-
getOs
Get platform OS.- Returns:
- os
-
getNodeClassifier
Get the node classifier for current platform.- Parameters:
nodeVersion- node version to get classifier for- Returns:
- platform node classifier
-
isNodeSupportExperimental
public boolean isNodeSupportExperimental()Check if the current platform is experimental for Node.js.- Returns:
- true if experimental
-