equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package jdk.internal.module; |
26 package jdk.internal.module; |
27 |
27 |
|
28 /** |
|
29 * Represents the module target. |
|
30 * |
|
31 * For now, this is a single value for the target platform, e.g. "linux-x64". |
|
32 */ |
28 public final class ModuleTarget { |
33 public final class ModuleTarget { |
29 |
34 |
30 private final String osName; |
35 private final String targetPlatform; |
31 private final String osArch; |
|
32 |
36 |
33 public ModuleTarget(String osName, String osArch) { |
37 public ModuleTarget(String targetPlatform) { |
34 this.osName = osName; |
38 this.targetPlatform = targetPlatform; |
35 this.osArch = osArch; |
|
36 } |
39 } |
37 |
40 |
38 public String osName() { |
41 public String targetPlatform() { |
39 return osName; |
42 return targetPlatform; |
40 } |
|
41 |
|
42 public String osArch() { |
|
43 return osArch; |
|
44 } |
43 } |
45 |
44 |
46 } |
45 } |