final class jdk.incubator.jpackage.internal.Platform extends java.lang.Enum<jdk.incubator.jpackage.internal.Platform>
minor version: 0
major version: 59
flags: flags: (0x4030) ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: jdk.incubator.jpackage.internal.Platform
super_class: java.lang.Enum
{
public static final jdk.incubator.jpackage.internal.Platform UNKNOWN;
descriptor: Ljdk/incubator/jpackage/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.incubator.jpackage.internal.Platform WINDOWS;
descriptor: Ljdk/incubator/jpackage/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.incubator.jpackage.internal.Platform LINUX;
descriptor: Ljdk/incubator/jpackage/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.incubator.jpackage.internal.Platform MAC;
descriptor: Ljdk/incubator/jpackage/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private static final jdk.incubator.jpackage.internal.Platform platform;
descriptor: Ljdk/incubator/jpackage/internal/Platform;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int majorVersion;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int minorVersion;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.incubator.jpackage.internal.Platform[] ENUM$VALUES;
descriptor: [Ljdk/incubator/jpackage/internal/Platform;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=0
0: new jdk.incubator.jpackage.internal.Platform
dup
ldc "UNKNOWN"
iconst_0
invokespecial jdk.incubator.jpackage.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.incubator.jpackage.internal.Platform.UNKNOWN:Ljdk/incubator/jpackage/internal/Platform;
new jdk.incubator.jpackage.internal.Platform
dup
ldc "WINDOWS"
iconst_1
invokespecial jdk.incubator.jpackage.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.incubator.jpackage.internal.Platform.WINDOWS:Ljdk/incubator/jpackage/internal/Platform;
new jdk.incubator.jpackage.internal.Platform
dup
ldc "LINUX"
iconst_2
invokespecial jdk.incubator.jpackage.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.incubator.jpackage.internal.Platform.LINUX:Ljdk/incubator/jpackage/internal/Platform;
new jdk.incubator.jpackage.internal.Platform
dup
ldc "MAC"
iconst_3
invokespecial jdk.incubator.jpackage.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.incubator.jpackage.internal.Platform.MAC:Ljdk/incubator/jpackage/internal/Platform;
iconst_4
anewarray jdk.incubator.jpackage.internal.Platform
dup
iconst_0
getstatic jdk.incubator.jpackage.internal.Platform.UNKNOWN:Ljdk/incubator/jpackage/internal/Platform;
aastore
dup
iconst_1
getstatic jdk.incubator.jpackage.internal.Platform.WINDOWS:Ljdk/incubator/jpackage/internal/Platform;
aastore
dup
iconst_2
getstatic jdk.incubator.jpackage.internal.Platform.LINUX:Ljdk/incubator/jpackage/internal/Platform;
aastore
dup
iconst_3
getstatic jdk.incubator.jpackage.internal.Platform.MAC:Ljdk/incubator/jpackage/internal/Platform;
aastore
putstatic jdk.incubator.jpackage.internal.Platform.ENUM$VALUES:[Ljdk/incubator/jpackage/internal/Platform;
1: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 0
start local 0 2: aload 0
ldc "win"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iflt 5
3: getstatic jdk.incubator.jpackage.internal.Platform.WINDOWS:Ljdk/incubator/jpackage/internal/Platform;
putstatic jdk.incubator.jpackage.internal.Platform.platform:Ljdk/incubator/jpackage/internal/Platform;
4: goto 12
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc "nix"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
ifge 6
aload 0
ldc "nux"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iflt 8
6: StackMap locals:
StackMap stack:
getstatic jdk.incubator.jpackage.internal.Platform.LINUX:Ljdk/incubator/jpackage/internal/Platform;
putstatic jdk.incubator.jpackage.internal.Platform.platform:Ljdk/incubator/jpackage/internal/Platform;
7: goto 12
8: StackMap locals:
StackMap stack:
aload 0
ldc "mac"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iflt 11
9: getstatic jdk.incubator.jpackage.internal.Platform.MAC:Ljdk/incubator/jpackage/internal/Platform;
putstatic jdk.incubator.jpackage.internal.Platform.platform:Ljdk/incubator/jpackage/internal/Platform;
10: goto 12
11: StackMap locals:
StackMap stack:
getstatic jdk.incubator.jpackage.internal.Platform.UNKNOWN:Ljdk/incubator/jpackage/internal/Platform;
putstatic jdk.incubator.jpackage.internal.Platform.platform:Ljdk/incubator/jpackage/internal/Platform;
12: StackMap locals:
StackMap stack:
ldc "os.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.toString:()Ljava/lang/String;
astore 1
start local 1 13: aload 1
ldc "."
invokestatic java.util.regex.Pattern.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 14: aload 2
arraylength
ifle 21
15: aload 2
iconst_0
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic jdk.incubator.jpackage.internal.Platform.majorVersion:I
16: aload 2
arraylength
iconst_1
if_icmple 19
17: aload 2
iconst_1
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic jdk.incubator.jpackage.internal.Platform.minorVersion:I
18: goto 23
19: StackMap locals: java.lang.String java.lang.String[]
StackMap stack:
iconst_m1
putstatic jdk.incubator.jpackage.internal.Platform.minorVersion:I
20: goto 23
21: StackMap locals:
StackMap stack:
iconst_m1
putstatic jdk.incubator.jpackage.internal.Platform.majorVersion:I
22: iconst_m1
putstatic jdk.incubator.jpackage.internal.Platform.minorVersion:I
end local 2 end local 1 end local 0 23: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
2 23 0 os Ljava/lang/String;
13 23 1 version Ljava/lang/String;
14 23 2 parts [Ljava/lang/String;
private void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/jpackage/internal/Platform;
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
static jdk.incubator.jpackage.internal.Platform getPlatform();
descriptor: ()Ljdk/incubator/jpackage/internal/Platform;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.incubator.jpackage.internal.Platform.platform:Ljdk/incubator/jpackage/internal/Platform;
areturn
LocalVariableTable:
Start End Slot Name Signature
static int getMajorVersion();
descriptor: ()I
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.incubator.jpackage.internal.Platform.majorVersion:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
static int getMinorVersion();
descriptor: ()I
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.incubator.jpackage.internal.Platform.minorVersion:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
static boolean isWindows();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.incubator.jpackage.internal.Platform.getPlatform:()Ljdk/incubator/jpackage/internal/Platform;
getstatic jdk.incubator.jpackage.internal.Platform.WINDOWS:Ljdk/incubator/jpackage/internal/Platform;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
static boolean isMac();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.incubator.jpackage.internal.Platform.getPlatform:()Ljdk/incubator/jpackage/internal/Platform;
getstatic jdk.incubator.jpackage.internal.Platform.MAC:Ljdk/incubator/jpackage/internal/Platform;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
static boolean isLinux();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.incubator.jpackage.internal.Platform.getPlatform:()Ljdk/incubator/jpackage/internal/Platform;
getstatic jdk.incubator.jpackage.internal.Platform.LINUX:Ljdk/incubator/jpackage/internal/Platform;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
static java.lang.RuntimeException throwUnknownPlatformError();
descriptor: ()Ljava/lang/RuntimeException;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.IllegalArgumentException
dup
ldc "Unknown platform"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
public static jdk.incubator.jpackage.internal.Platform[] values();
descriptor: ()[Ljdk/incubator/jpackage/internal/Platform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic jdk.incubator.jpackage.internal.Platform.ENUM$VALUES:[Ljdk/incubator/jpackage/internal/Platform;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray jdk.incubator.jpackage.internal.Platform
dup
astore 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
aload 2
areturn
LocalVariableTable:
Start End Slot Name Signature
public static jdk.incubator.jpackage.internal.Platform valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/incubator/jpackage/internal/Platform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Ljdk/incubator/jpackage/internal/Platform;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast jdk.incubator.jpackage.internal.Platform
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
}
Signature: Ljava/lang/Enum<Ljdk/incubator/jpackage/internal/Platform;>;
SourceFile: "Platform.java"