final class jdk.incubator.jpackage.internal.FileAssociation
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.jpackage.internal.FileAssociation
super_class: java.lang.Object
{
java.nio.file.Path launcherPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0000)
java.nio.file.Path iconPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0000)
java.util.List<java.lang.String> mimeTypes;
descriptor: Ljava/util/List;
flags: (0x0000)
Signature: Ljava/util/List<Ljava/lang/String;>;
java.util.List<java.lang.String> extensions;
descriptor: Ljava/util/List;
flags: (0x0000)
Signature: Ljava/util/List<Ljava/lang/String;>;
java.lang.String description;
descriptor: Ljava/lang/String;
flags: (0x0000)
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/jpackage/internal/FileAssociation;
void verify();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.jpackage.internal.FileAssociation.extensions:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
1: ldc "message.creating-association-with-null-extension"
2: invokestatic jdk.incubator.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.error:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/jpackage/internal/FileAssociation;
static java.util.List<jdk.incubator.jpackage.internal.FileAssociation> fetchFrom(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
aload 0
invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 1: getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.FILE_ASSOCIATIONS:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
aload 0
invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.util.List
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
2: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/util/Objects.nonNull(Ljava/lang/Object;)Z (6)
(Ljava/util/Map;)Z
3: invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: aload 1
invokedynamic apply(Ljava/lang/String;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/incubator/jpackage/internal/FileAssociation.lambda$1(Ljava/lang/String;Ljava/util/Map;)Ljdk/incubator/jpackage/internal/FileAssociation; (6)
(Ljava/util/Map;)Ljdk/incubator/jpackage/internal/FileAssociation;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
6: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 7 1 launcherName Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/util/List<Ljdk/incubator/jpackage/internal/FileAssociation;>;
MethodParameters:
Name Flags
params
private static jdk.incubator.jpackage.internal.FileAssociation lambda$1(java.lang.String, java.util.Map);
descriptor: (Ljava/lang/String;Ljava/util/Map;)Ljdk/incubator/jpackage/internal/FileAssociation;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=2
start local 1 0: new jdk.incubator.jpackage.internal.FileAssociation
dup
invokespecial jdk.incubator.jpackage.internal.FileAssociation.<init>:()V
astore 2
start local 2 1: aload 2
aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
putfield jdk.incubator.jpackage.internal.FileAssociation.launcherPath:Ljava/nio/file/Path;
2: aload 2
getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.FA_DESCRIPTION:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
putfield jdk.incubator.jpackage.internal.FileAssociation.description:Ljava/lang/String;
3: aload 2
4: getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.FA_EXTENSIONS:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.util.List
5: invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
6: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
7: putfield jdk.incubator.jpackage.internal.FileAssociation.extensions:Ljava/util/List;
8: aload 2
9: getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.FA_CONTENT_TYPE:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.util.List
10: invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
11: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
12: putfield jdk.incubator.jpackage.internal.FileAssociation.mimeTypes:Ljava/util/List;
13: getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.FA_ICON:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.io.File
astore 3
start local 3 14: aload 3
ifnull 16
15: aload 2
aload 3
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
putfield jdk.incubator.jpackage.internal.FileAssociation.iconPath:Ljava/nio/file/Path;
16: StackMap locals: jdk.incubator.jpackage.internal.FileAssociation java.io.File
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 17 1 fa Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 17 2 assoc Ljdk/incubator/jpackage/internal/FileAssociation;
14 17 3 icon Ljava/io/File;
}
SourceFile: "FileAssociation.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles