final class jdk.incubator.jpackage.internal.OverridableResource
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.jpackage.internal.OverridableResource
super_class: java.lang.Object
{
private java.util.Map<java.lang.String, java.lang.String> substitutionData;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private java.lang.String category;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path resourceDir;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path publicName;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path externalPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private final java.lang.String defaultName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 3 1 defaultName Ljava/lang/String;
MethodParameters:
Name Flags
defaultName
jdk.incubator.jpackage.internal.OverridableResource setSubstitutionData(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 3
1: aload 0
new java.util.HashMap
dup
aload 1
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
putfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 5 1 v Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljdk/incubator/jpackage/internal/OverridableResource;
MethodParameters:
Name Flags
v
jdk.incubator.jpackage.internal.OverridableResource setCategory(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.incubator.jpackage.internal.OverridableResource.category:Ljava/lang/String;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 2 1 v Ljava/lang/String;
MethodParameters:
Name Flags
v
jdk.incubator.jpackage.internal.OverridableResource setResourceDir(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 2 1 v Ljava/nio/file/Path;
MethodParameters:
Name Flags
v
jdk.incubator.jpackage.internal.OverridableResource setResourceDir(java.io.File);
descriptor: (Ljava/io/File;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.incubator.jpackage.internal.OverridableResource.toPath:(Ljava/io/File;)Ljava/nio/file/Path;
invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setResourceDir:(Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 1 1 v Ljava/io/File;
MethodParameters:
Name Flags
v
jdk.incubator.jpackage.internal.OverridableResource setPublicName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.incubator.jpackage.internal.OverridableResource.publicName:Ljava/nio/file/Path;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 2 1 v Ljava/nio/file/Path;
MethodParameters:
Name Flags
v
jdk.incubator.jpackage.internal.OverridableResource setPublicName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setPublicName:(Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 1 1 v Ljava/lang/String;
MethodParameters:
Name Flags
v
jdk.incubator.jpackage.internal.OverridableResource setExternal(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 2 1 v Ljava/nio/file/Path;
MethodParameters:
Name Flags
v
jdk.incubator.jpackage.internal.OverridableResource setExternal(java.io.File);
descriptor: (Ljava/io/File;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.incubator.jpackage.internal.OverridableResource.toPath:(Ljava/io/File;)Ljava/nio/file/Path;
invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setExternal:(Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 1 1 v Ljava/io/File;
MethodParameters:
Name Flags
v
void saveToFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.category:Ljava/lang/String;
ifnull 3
1: ldc "[%s]"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.category:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 2: goto 4
end local 2 3: StackMap locals:
StackMap stack:
ldc ""
astore 2
start local 2 4: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
ifnull 20
aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 20
5: ldc "message.using-custom-resource-from-file"
6: invokestatic jdk.incubator.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
7: aload 2
aastore
dup
iconst_1
8: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
aastore
9: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
10: aconst_null
astore 3
aconst_null
astore 4
11: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
astore 5
start local 5 12: aload 0
aload 5
aload 1
invokevirtual jdk.incubator.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
13: aload 5
ifnull 19
aload 5
invokevirtual java.io.InputStream.close:()V
goto 19
StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.nio.file.Path java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
14: astore 3
aload 5
ifnull 15
aload 5
invokevirtual java.io.InputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
15: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 4
aload 3
ifnonnull 17
aload 4
astore 3
goto 18
StackMap locals:
StackMap stack:
17: aload 3
aload 4
if_acmpeq 18
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 3
athrow
19: StackMap locals:
StackMap stack:
return
20: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.publicName:Ljava/nio/file/Path;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
21: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
22: invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 3
start local 3 23: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
ifnull 43
24: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 4
start local 4 25: aload 4
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 43
26: ldc "message.using-custom-resource"
27: invokestatic jdk.incubator.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
28: aload 2
aastore
dup
iconst_1
29: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
30: aload 4
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
31: invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
aastore
32: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
33: aconst_null
astore 5
aconst_null
astore 6
34: aload 4
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
astore 7
start local 7 35: aload 0
aload 7
aload 1
invokevirtual jdk.incubator.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
36: aload 7
ifnull 42
aload 7
invokevirtual java.io.InputStream.close:()V
goto 42
StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.nio.file.Path java.lang.String java.nio.file.Path java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
37: astore 5
aload 7
ifnull 38
aload 7
invokevirtual java.io.InputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
38: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
39: astore 6
aload 5
ifnonnull 40
aload 6
astore 5
goto 41
StackMap locals:
StackMap stack:
40: aload 5
aload 6
if_acmpeq 41
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
41: aload 5
athrow
42: StackMap locals:
StackMap stack:
return
end local 4 43: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
ifnull 56
44: ldc "message.using-default-resource"
invokestatic jdk.incubator.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_3
anewarray java.lang.Object
dup
iconst_0
45: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
aastore
dup
iconst_1
aload 2
aastore
dup
iconst_2
aload 3
aastore
46: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
47: aconst_null
astore 4
aconst_null
astore 5
48: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.OverridableResource.readDefault:(Ljava/lang/String;)Ljava/io/InputStream;
astore 6
start local 6 49: aload 0
aload 6
aload 1
invokevirtual jdk.incubator.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
50: aload 6
ifnull 56
aload 6
invokevirtual java.io.InputStream.close:()V
goto 56
StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.nio.file.Path java.lang.String java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
51: astore 4
aload 6
ifnull 52
aload 6
invokevirtual java.io.InputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
52: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
53: astore 5
aload 4
ifnonnull 54
aload 5
astore 4
goto 55
StackMap locals:
StackMap stack:
54: aload 4
aload 5
if_acmpeq 55
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
55: aload 4
athrow
56: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 57 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 57 1 dest Ljava/nio/file/Path;
2 3 2 printableCategory Ljava/lang/String;
4 57 2 printableCategory Ljava/lang/String;
12 15 5 in Ljava/io/InputStream;
23 57 3 resourceName Ljava/nio/file/Path;
25 43 4 customResource Ljava/nio/file/Path;
35 38 7 in Ljava/io/InputStream;
49 52 6 in Ljava/io/InputStream;
Exception table:
from to target type
12 13 14 any
11 16 16 any
35 36 37 any
34 39 39 any
49 50 51 any
48 53 53 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dest
void saveToFile(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
invokevirtual jdk.incubator.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 2 1 dest Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dest
static java.io.InputStream readDefault(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc Ljdk/incubator/jpackage/internal/resources/ResourceLocator;
aload 0
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 resourceName Ljava/lang/String;
MethodParameters:
Name Flags
resourceName
static jdk.incubator.jpackage.internal.OverridableResource createResource(java.lang.String, java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/lang/String;Ljava/util/Map;)Ljdk/incubator/jpackage/internal/OverridableResource;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new jdk.incubator.jpackage.internal.OverridableResource
dup
aload 0
invokespecial jdk.incubator.jpackage.internal.OverridableResource.<init>:(Ljava/lang/String;)V
1: getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.RESOURCE_DIR:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.io.File
2: invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setResourceDir:(Ljava/io/File;)Ljdk/incubator/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 defaultName Ljava/lang/String;
0 3 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljdk/incubator/jpackage/internal/OverridableResource;
MethodParameters:
Name Flags
defaultName
params
private static java.util.List<java.lang.String> substitute(java.util.stream.Stream<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/stream/Stream;Ljava/util/Map;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic apply(Ljava/util/Map;)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/OverridableResource.lambda$0(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
1: 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
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 lines Ljava/util/stream/Stream<Ljava/lang/String;>;
0 3 1 substitutionData Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/stream/Stream<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
lines
substitutionData
private static java.nio.file.Path toPath(java.io.File);
descriptor: (Ljava/io/File;)Ljava/nio/file/Path;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 2
1: aload 0
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 v Ljava/io/File;
MethodParameters:
Name Flags
v
private void processResourceStream(java.io.InputStream, java.nio.file.Path);
descriptor: (Ljava/io/InputStream;Ljava/nio/file/Path;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
ifnonnull 4
1: aload 2
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
2: aload 1
aload 2
iconst_1
anewarray java.nio.file.CopyOption
dup
iconst_0
getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
aastore
invokestatic java.nio.file.Files.copy:(Ljava/io/InputStream;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)J
pop2
3: goto 16
4: StackMap locals:
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
5: new java.io.BufferedReader
dup
6: new java.io.InputStreamReader
dup
aload 1
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
7: invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 5
start local 5 8: aload 2
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
9: aload 2
aload 5
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
aload 0
getfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
invokestatic jdk.incubator.jpackage.internal.OverridableResource.substitute:(Ljava/util/stream/Stream;Ljava/util/Map;)Ljava/util/List;
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;Ljava/lang/Iterable;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
pop
10: aload 5
ifnull 16
aload 5
invokevirtual java.io.BufferedReader.close:()V
goto 16
StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.io.InputStream java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack: java.lang.Throwable
11: astore 3
aload 5
ifnull 12
aload 5
invokevirtual java.io.BufferedReader.close:()V
end local 5 StackMap locals:
StackMap stack:
12: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 4
aload 3
ifnonnull 14
aload 4
astore 3
goto 15
StackMap locals:
StackMap stack:
14: aload 3
aload 4
if_acmpeq 15
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 3
athrow
16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/incubator/jpackage/internal/OverridableResource;
0 17 1 rawResource Ljava/io/InputStream;
0 17 2 dest Ljava/nio/file/Path;
8 12 5 reader Ljava/io/BufferedReader;
Exception table:
from to target type
8 10 11 any
5 13 13 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
rawResource
dest
private static java.lang.String lambda$0(java.util.Map, java.lang.String);
descriptor: (Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=5, args_size=2
start local 1 0: aload 1
astore 2
start local 2 1: aload 0
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: java.util.Map java.lang.String java.lang.String top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 3: aload 2
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.CharSequence
4: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.String
5: invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
6: ldc ""
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.CharSequence
7: invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 2
end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: aload 2
areturn
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 10 1 line Ljava/lang/String;
1 10 2 result Ljava/lang/String;
3 8 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
}
SourceFile: "OverridableResource.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map