public final class jdk.tools.jlink.internal.Platform extends java.lang.Enum<jdk.tools.jlink.internal.Platform>
minor version: 0
major version: 59
flags: flags: (0x4031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: jdk.tools.jlink.internal.Platform
super_class: java.lang.Enum
{
public static final jdk.tools.jlink.internal.Platform WINDOWS;
descriptor: Ljdk/tools/jlink/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.tools.jlink.internal.Platform LINUX;
descriptor: Ljdk/tools/jlink/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.tools.jlink.internal.Platform SOLARIS;
descriptor: Ljdk/tools/jlink/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.tools.jlink.internal.Platform MACOS;
descriptor: Ljdk/tools/jlink/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.tools.jlink.internal.Platform AIX;
descriptor: Ljdk/tools/jlink/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final jdk.tools.jlink.internal.Platform UNKNOWN;
descriptor: Ljdk/tools/jlink/internal/Platform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private static final jdk.tools.jlink.internal.Platform[] ENUM$VALUES;
descriptor: [Ljdk/tools/jlink/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=0, args_size=0
0: new jdk.tools.jlink.internal.Platform
dup
ldc "WINDOWS"
iconst_0
invokespecial jdk.tools.jlink.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.tools.jlink.internal.Platform.WINDOWS:Ljdk/tools/jlink/internal/Platform;
1: new jdk.tools.jlink.internal.Platform
dup
ldc "LINUX"
iconst_1
invokespecial jdk.tools.jlink.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.tools.jlink.internal.Platform.LINUX:Ljdk/tools/jlink/internal/Platform;
2: new jdk.tools.jlink.internal.Platform
dup
ldc "SOLARIS"
iconst_2
invokespecial jdk.tools.jlink.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.tools.jlink.internal.Platform.SOLARIS:Ljdk/tools/jlink/internal/Platform;
3: new jdk.tools.jlink.internal.Platform
dup
ldc "MACOS"
iconst_3
invokespecial jdk.tools.jlink.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.tools.jlink.internal.Platform.MACOS:Ljdk/tools/jlink/internal/Platform;
4: new jdk.tools.jlink.internal.Platform
dup
ldc "AIX"
iconst_4
invokespecial jdk.tools.jlink.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.tools.jlink.internal.Platform.AIX:Ljdk/tools/jlink/internal/Platform;
5: new jdk.tools.jlink.internal.Platform
dup
ldc "UNKNOWN"
iconst_5
invokespecial jdk.tools.jlink.internal.Platform.<init>:(Ljava/lang/String;I)V
putstatic jdk.tools.jlink.internal.Platform.UNKNOWN:Ljdk/tools/jlink/internal/Platform;
6: bipush 6
anewarray jdk.tools.jlink.internal.Platform
dup
iconst_0
getstatic jdk.tools.jlink.internal.Platform.WINDOWS:Ljdk/tools/jlink/internal/Platform;
aastore
dup
iconst_1
getstatic jdk.tools.jlink.internal.Platform.LINUX:Ljdk/tools/jlink/internal/Platform;
aastore
dup
iconst_2
getstatic jdk.tools.jlink.internal.Platform.SOLARIS:Ljdk/tools/jlink/internal/Platform;
aastore
dup
iconst_3
getstatic jdk.tools.jlink.internal.Platform.MACOS:Ljdk/tools/jlink/internal/Platform;
aastore
dup
iconst_4
getstatic jdk.tools.jlink.internal.Platform.AIX:Ljdk/tools/jlink/internal/Platform;
aastore
dup
iconst_5
getstatic jdk.tools.jlink.internal.Platform.UNKNOWN:Ljdk/tools/jlink/internal/Platform;
aastore
putstatic jdk.tools.jlink.internal.Platform.ENUM$VALUES:[Ljdk/tools/jlink/internal/Platform;
return
LocalVariableTable:
Start End Slot Name Signature
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/tools/jlink/internal/Platform;
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
public static jdk.tools.jlink.internal.Platform toPlatform(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/tools/jlink/internal/Platform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
ldc "-"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
start local 2 1: iload 2
ifge 4
2: aload 0
astore 1
start local 1 3: goto 5
end local 1 4: StackMap locals: java.lang.String top int
StackMap stack:
aload 0
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
start local 1 5: StackMap locals: java.lang.String java.lang.String int
StackMap stack:
aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
invokestatic jdk.tools.jlink.internal.Platform.valueOf:(Ljava/lang/String;)Ljdk/tools/jlink/internal/Platform;
6: areturn
7: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
8: getstatic jdk.tools.jlink.internal.Platform.UNKNOWN:Ljdk/tools/jlink/internal/Platform;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 targetPlatform Ljava/lang/String;
3 4 1 osName Ljava/lang/String;
5 9 1 osName Ljava/lang/String;
1 9 2 index I
Exception table:
from to target type
5 6 7 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
targetPlatform
public static jdk.tools.jlink.internal.Platform getTargetPlatform(jdk.tools.jlink.plugin.ResourcePoolModule);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljdk/tools/jlink/internal/Platform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.targetPlatform:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokestatic jdk.tools.jlink.internal.Platform.toPlatform:(Ljava/lang/String;)Ljdk/tools/jlink/internal/Platform;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
getstatic jdk.tools.jlink.internal.Platform.UNKNOWN:Ljdk/tools/jlink/internal/Platform;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 module Ljdk/tools/jlink/plugin/ResourcePoolModule;
1 4 1 targetPlatform Ljava/lang/String;
MethodParameters:
Name Flags
module
public static jdk.tools.jlink.internal.Platform[] values();
descriptor: ()[Ljdk/tools/jlink/internal/Platform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic jdk.tools.jlink.internal.Platform.ENUM$VALUES:[Ljdk/tools/jlink/internal/Platform;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray jdk.tools.jlink.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.tools.jlink.internal.Platform valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/tools/jlink/internal/Platform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Ljdk/tools/jlink/internal/Platform;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast jdk.tools.jlink.internal.Platform
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
}
Signature: Ljava/lang/Enum<Ljdk/tools/jlink/internal/Platform;>;
SourceFile: "Platform.java"