final class jdk.jpackage.internal.OverridableResource
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.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 logPublicName;
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
private java.util.List<java.util.Map$Entry<jdk.jpackage.internal.OverridableResource$Source, jdk.jpackage.internal.OverridableResource$SourceHandler>> sources;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/util/Map$Entry<Ljdk/jpackage/internal/OverridableResource$Source;Ljdk/jpackage/internal/OverridableResource$SourceHandler;>;>;
private static volatile int[] $SWITCH_TABLE$jdk$jpackage$internal$OverridableResource$Source;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
2: aload 0
invokestatic jdk.jpackage.internal.OverridableResource$Source.values:()[Ljdk/jpackage/internal/OverridableResource$Source;
invokevirtual jdk.jpackage.internal.OverridableResource.setSourceOrder:([Ljdk/jpackage/internal/OverridableResource$Source;)Ljdk/jpackage/internal/OverridableResource;
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jpackage/internal/OverridableResource;
0 4 1 defaultName Ljava/lang/String;
MethodParameters:
Name Flags
defaultName
jdk.jpackage.internal.OverridableResource setSubstitutionData(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Ljdk/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.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield jdk.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/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/jpackage/internal/OverridableResource;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setCategory(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/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.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/jpackage/internal/OverridableResource;
0 2 1 v Ljava/lang/String;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setResourceDir(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/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.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/jpackage/internal/OverridableResource;
0 2 1 v Ljava/nio/file/Path;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setResourceDir(java.io.File);
descriptor: (Ljava/io/File;)Ljdk/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.jpackage.internal.OverridableResource.toPath:(Ljava/io/File;)Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.OverridableResource.setResourceDir:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/OverridableResource;
0 1 1 v Ljava/io/File;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setSourceOrder(jdk.jpackage.internal.OverridableResource$Source[]);
descriptor: ([Ljdk/jpackage/internal/OverridableResource$Source;)Ljdk/jpackage/internal/OverridableResource;
flags: (0x0080) ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
1: aload 0
invokedynamic apply(Ljdk/jpackage/internal/OverridableResource;)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/jpackage/internal/OverridableResource.lambda$0(Ljdk/jpackage/internal/OverridableResource$Source;)Ljava/util/Map$Entry; (7)
(Ljdk/jpackage/internal/OverridableResource$Source;)Ljava/util/Map$Entry;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: 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
3: putfield jdk.jpackage.internal.OverridableResource.sources:Ljava/util/List;
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jpackage/internal/OverridableResource;
0 5 1 v [Ljdk/jpackage/internal/OverridableResource$Source;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setPublicName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/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.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/jpackage/internal/OverridableResource;
0 2 1 v Ljava/nio/file/Path;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setPublicName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/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.jpackage.internal.OverridableResource.setPublicName:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/OverridableResource;
0 1 1 v Ljava/lang/String;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setLogPublicName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/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.jpackage.internal.OverridableResource.logPublicName: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/jpackage/internal/OverridableResource;
0 2 1 v Ljava/nio/file/Path;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setLogPublicName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/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.jpackage.internal.OverridableResource.setLogPublicName:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/OverridableResource;
0 1 1 v Ljava/lang/String;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setExternal(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/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.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/jpackage/internal/OverridableResource;
0 2 1 v Ljava/nio/file/Path;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource setExternal(java.io.File);
descriptor: (Ljava/io/File;)Ljdk/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.jpackage.internal.OverridableResource.toPath:(Ljava/io/File;)Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.OverridableResource.setExternal:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/OverridableResource;
0 1 1 v Ljava/io/File;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.OverridableResource$Source saveToStream(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljdk/jpackage/internal/OverridableResource$Source;
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aload 0
aconst_null
invokevirtual jdk.jpackage.internal.OverridableResource.sendToConsumer:(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljdk/jpackage/internal/OverridableResource$Source;
areturn
2: StackMap locals:
StackMap stack:
aload 0
new jdk.jpackage.internal.OverridableResource$1
dup
aload 0
aload 1
invokespecial jdk.jpackage.internal.OverridableResource$1.<init>:(Ljdk/jpackage/internal/OverridableResource;Ljava/io/OutputStream;)V
invokevirtual jdk.jpackage.internal.OverridableResource.sendToConsumer:(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljdk/jpackage/internal/OverridableResource$Source;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/OverridableResource;
0 3 1 dest Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dest
jdk.jpackage.internal.OverridableResource$Source saveToFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aload 0
aconst_null
invokevirtual jdk.jpackage.internal.OverridableResource.sendToConsumer:(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljdk/jpackage/internal/OverridableResource$Source;
areturn
2: StackMap locals:
StackMap stack:
aload 0
new jdk.jpackage.internal.OverridableResource$2
dup
aload 0
aload 1
invokespecial jdk.jpackage.internal.OverridableResource$2.<init>:(Ljdk/jpackage/internal/OverridableResource;Ljava/nio/file/Path;)V
invokevirtual jdk.jpackage.internal.OverridableResource.sendToConsumer:(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljdk/jpackage/internal/OverridableResource$Source;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/OverridableResource;
0 3 1 dest Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dest
jdk.jpackage.internal.OverridableResource$Source saveToFile(java.io.File);
descriptor: (Ljava/io/File;)Ljdk/jpackage/internal/OverridableResource$Source;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.jpackage.internal.OverridableResource.toPath:(Ljava/io/File;)Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/OverridableResource;
0 1 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/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.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/jpackage/internal/OverridableResource;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new jdk.jpackage.internal.OverridableResource
dup
aload 0
invokespecial jdk.jpackage.internal.OverridableResource.<init>:(Ljava/lang/String;)V
1: getstatic jdk.jpackage.internal.StandardBundlerParam.RESOURCE_DIR:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
2: invokevirtual jdk.jpackage.internal.OverridableResource.setResourceDir:(Ljava/nio/file/Path;)Ljdk/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/jpackage/internal/OverridableResource;
MethodParameters:
Name Flags
defaultName
params
private jdk.jpackage.internal.OverridableResource$Source sendToConsumer(jdk.jpackage.internal.OverridableResource$ResourceConsumer);
descriptor: (Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljdk/jpackage/internal/OverridableResource$Source;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jpackage.internal.OverridableResource.sources:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: jdk.jpackage.internal.OverridableResource jdk.jpackage.internal.OverridableResource$ResourceConsumer top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 2: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.OverridableResource$SourceHandler
aload 1
invokeinterface jdk.jpackage.internal.OverridableResource$SourceHandler.apply:(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
ifeq 4
3: aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.OverridableResource$Source
areturn
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jpackage/internal/OverridableResource;
0 6 1 consumer Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;
2 4 2 source Ljava/util/Map$Entry<Ljdk/jpackage/internal/OverridableResource$Source;Ljdk/jpackage/internal/OverridableResource$SourceHandler;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
consumer
private java.lang.String getPrintableCategory();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.OverridableResource.category:Ljava/lang/String;
ifnull 2
1: ldc "[%s]"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.jpackage.internal.OverridableResource.category:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
ldc ""
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/OverridableResource;
private boolean useExternal(jdk.jpackage.internal.OverridableResource$ResourceConsumer);
descriptor: (Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
ifnull 1
aload 0
getfield jdk.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: iload 2
ifeq 18
aload 1
ifnull 18
4: ldc "message.using-custom-resource-from-file"
5: invokestatic jdk.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
6: aload 0
invokevirtual jdk.jpackage.internal.OverridableResource.getPrintableCategory:()Ljava/lang/String;
aastore
dup
iconst_1
7: aload 0
getfield jdk.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
8: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
9: aconst_null
astore 3
aconst_null
astore 4
10: aload 0
getfield jdk.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 11: aload 0
aload 5
aload 1
invokevirtual jdk.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)V
12: aload 5
ifnull 18
aload 5
invokevirtual java.io.InputStream.close:()V
goto 18
StackMap locals: jdk.jpackage.internal.OverridableResource jdk.jpackage.internal.OverridableResource$ResourceConsumer int java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
13: astore 3
aload 5
ifnull 14
aload 5
invokevirtual java.io.InputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
14: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 4
aload 3
ifnonnull 16
aload 4
astore 3
goto 17
StackMap locals:
StackMap stack:
16: aload 3
aload 4
if_acmpeq 17
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 3
athrow
18: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/jpackage/internal/OverridableResource;
0 19 1 dest Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;
3 19 2 used Z
11 14 5 in Ljava/io/InputStream;
Exception table:
from to target type
11 12 13 any
10 15 15 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dest
private boolean useResourceDir(jdk.jpackage.internal.OverridableResource$ResourceConsumer);
descriptor: (Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
ifnonnull 3
aload 0
getfield jdk.jpackage.internal.OverridableResource.publicName:Ljava/nio/file/Path;
ifnonnull 3
2: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.jpackage.internal.OverridableResource.publicName:Ljava/nio/file/Path;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
4: aload 1
invokedynamic get(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljava/util/function/Supplier;
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;
jdk/jpackage/internal/OverridableResource.lambda$1(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljava/nio/file/Path; (6)
()Ljava/nio/file/Path;
5: invokevirtual java.util.Optional.orElseGet:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 3
start local 3 6: aload 0
getfield jdk.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
ifnull 28
7: aload 0
getfield jdk.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 8: aload 4
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
istore 2
9: iload 2
ifeq 28
aload 1
ifnull 28
10: aload 0
getfield jdk.jpackage.internal.OverridableResource.logPublicName:Ljava/nio/file/Path;
ifnull 13
11: aload 0
getfield jdk.jpackage.internal.OverridableResource.logPublicName:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
astore 5
start local 5 12: goto 14
end local 5 13: StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
aload 3
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
astore 5
start local 5 14: StackMap locals: java.nio.file.Path
StackMap stack:
ldc "message.using-custom-resource"
15: invokestatic jdk.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
16: aload 0
invokevirtual jdk.jpackage.internal.OverridableResource.getPrintableCategory:()Ljava/lang/String;
aastore
dup
iconst_1
17: aload 5
aastore
18: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
19: aconst_null
astore 6
aconst_null
astore 7
20: 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 8
start local 8 21: aload 0
aload 8
aload 1
invokevirtual jdk.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)V
22: aload 8
ifnull 28
aload 8
invokevirtual java.io.InputStream.close:()V
goto 28
StackMap locals: jdk.jpackage.internal.OverridableResource jdk.jpackage.internal.OverridableResource$ResourceConsumer int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
23: astore 6
aload 8
ifnull 24
aload 8
invokevirtual java.io.InputStream.close:()V
end local 8 StackMap locals:
StackMap stack:
24: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 7
aload 6
ifnonnull 26
aload 7
astore 6
goto 27
StackMap locals:
StackMap stack:
26: aload 6
aload 7
if_acmpeq 27
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 6
athrow
end local 5 end local 4 28: StackMap locals: jdk.jpackage.internal.OverridableResource jdk.jpackage.internal.OverridableResource$ResourceConsumer int java.nio.file.Path
StackMap stack:
iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Ljdk/jpackage/internal/OverridableResource;
0 29 1 dest Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;
1 29 2 used Z
6 29 3 resourceName Ljava/nio/file/Path;
8 28 4 customResource Ljava/nio/file/Path;
12 13 5 logResourceName Ljava/nio/file/Path;
14 28 5 logResourceName Ljava/nio/file/Path;
21 24 8 in Ljava/io/InputStream;
Exception table:
from to target type
21 22 23 any
20 25 25 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dest
private boolean useDefault(jdk.jpackage.internal.OverridableResource$ResourceConsumer);
descriptor: (Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: iload 2
ifeq 21
aload 1
ifnull 21
4: aload 0
getfield jdk.jpackage.internal.OverridableResource.logPublicName:Ljava/nio/file/Path;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
5: aload 0
getfield jdk.jpackage.internal.OverridableResource.publicName:Ljava/nio/file/Path;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
6: aload 1
invokedynamic get(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljava/util/function/Supplier;
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;
jdk/jpackage/internal/OverridableResource.lambda$2(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljava/nio/file/Path; (6)
()Ljava/nio/file/Path;
invokevirtual java.util.Optional.orElseGet:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.nio.file.Path
7: invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.Path
8: astore 3
start local 3 9: ldc "message.using-default-resource"
invokestatic jdk.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_3
anewarray java.lang.Object
dup
iconst_0
10: aload 0
getfield jdk.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual jdk.jpackage.internal.OverridableResource.getPrintableCategory:()Ljava/lang/String;
aastore
dup
iconst_2
aload 3
aastore
11: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
12: aconst_null
astore 4
aconst_null
astore 5
13: aload 0
getfield jdk.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
invokestatic jdk.jpackage.internal.OverridableResource.readDefault:(Ljava/lang/String;)Ljava/io/InputStream;
astore 6
start local 6 14: aload 0
aload 6
aload 1
invokevirtual jdk.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)V
15: aload 6
ifnull 21
aload 6
invokevirtual java.io.InputStream.close:()V
goto 21
StackMap locals: jdk.jpackage.internal.OverridableResource jdk.jpackage.internal.OverridableResource$ResourceConsumer int java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
16: astore 4
aload 6
ifnull 17
aload 6
invokevirtual java.io.InputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
17: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 5
aload 4
ifnonnull 19
aload 5
astore 4
goto 20
StackMap locals:
StackMap stack:
19: aload 4
aload 5
if_acmpeq 20
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
20: aload 4
athrow
end local 3 21: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/jpackage/internal/OverridableResource;
0 22 1 dest Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;
3 22 2 used Z
9 21 3 resourceName Ljava/nio/file/Path;
14 17 6 in Ljava/io/InputStream;
Exception table:
from to target type
14 15 16 any
13 18 18 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dest
private static java.util.stream.Stream<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/stream/Stream;
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/jpackage/internal/OverridableResource.lambda$3(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;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 lines Ljava/util/stream/Stream<Ljava/lang/String;>;
0 1 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/stream/Stream<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, jdk.jpackage.internal.OverridableResource$ResourceConsumer);
descriptor: (Ljava/io/InputStream;Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
ifnonnull 3
1: aload 2
aload 1
invokeinterface jdk.jpackage.internal.OverridableResource$ResourceConsumer.consume:(Ljava/io/InputStream;)V
2: goto 27
3: StackMap locals:
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
4: new java.io.BufferedReader
dup
5: 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
6: invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 5
start local 5 7: aload 5
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
aload 0
getfield jdk.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
invokestatic jdk.jpackage.internal.OverridableResource.substitute:(Ljava/util/stream/Stream;Ljava/util/Map;)Ljava/util/stream/Stream;
8: ldc "\n"
ldc ""
ldc "\n"
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
9: invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 10: aconst_null
astore 7
aconst_null
astore 8
11: new java.io.ByteArrayInputStream
dup
aload 6
12: getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
13: invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 9
start local 9 14: aload 2
aload 9
invokeinterface jdk.jpackage.internal.OverridableResource$ResourceConsumer.consume:(Ljava/io/InputStream;)V
15: aload 9
ifnull 21
aload 9
invokevirtual java.io.InputStream.close:()V
goto 21
StackMap locals: jdk.jpackage.internal.OverridableResource java.io.InputStream jdk.jpackage.internal.OverridableResource$ResourceConsumer java.lang.Throwable java.lang.Throwable java.io.BufferedReader java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
16: astore 7
aload 9
ifnull 17
aload 9
invokevirtual java.io.InputStream.close:()V
end local 9 StackMap locals:
StackMap stack:
17: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 8
aload 7
ifnonnull 19
aload 8
astore 7
goto 20
StackMap locals:
StackMap stack:
19: aload 7
aload 8
if_acmpeq 20
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
20: aload 7
athrow
end local 6 21: StackMap locals:
StackMap stack:
aload 5
ifnull 27
aload 5
invokevirtual java.io.BufferedReader.close:()V
goto 27
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 3
aload 5
ifnull 23
aload 5
invokevirtual java.io.BufferedReader.close:()V
end local 5 StackMap locals:
StackMap stack:
23: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
24: astore 4
aload 3
ifnonnull 25
aload 4
astore 3
goto 26
StackMap locals:
StackMap stack:
25: aload 3
aload 4
if_acmpeq 26
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
26: aload 3
athrow
27: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljdk/jpackage/internal/OverridableResource;
0 28 1 rawResource Ljava/io/InputStream;
0 28 2 dest Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;
7 23 5 reader Ljava/io/BufferedReader;
10 21 6 data Ljava/lang/String;
14 17 9 in Ljava/io/InputStream;
Exception table:
from to target type
14 15 16 any
11 18 18 any
7 21 22 any
4 24 24 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
rawResource
dest
private jdk.jpackage.internal.OverridableResource$SourceHandler getHandler(jdk.jpackage.internal.OverridableResource$Source);
descriptor: (Ljdk/jpackage/internal/OverridableResource$Source;)Ljdk/jpackage/internal/OverridableResource$SourceHandler;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic jdk.jpackage.internal.OverridableResource.$SWITCH_TABLE$jdk$jpackage$internal$OverridableResource$Source:()[I
aload 1
invokevirtual jdk.jpackage.internal.OverridableResource$Source.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 2
2: 3
3: 1
default: 4
}
1: StackMap locals:
StackMap stack:
aload 0
invokedynamic apply(Ljdk/jpackage/internal/OverridableResource;)Ljdk/jpackage/internal/OverridableResource$SourceHandler;
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:
(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
jdk/jpackage/internal/OverridableResource.useDefault(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z (7)
(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokedynamic apply(Ljdk/jpackage/internal/OverridableResource;)Ljdk/jpackage/internal/OverridableResource$SourceHandler;
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:
(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
jdk/jpackage/internal/OverridableResource.useExternal(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z (7)
(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokedynamic apply(Ljdk/jpackage/internal/OverridableResource;)Ljdk/jpackage/internal/OverridableResource$SourceHandler;
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:
(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
jdk/jpackage/internal/OverridableResource.useResourceDir(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z (7)
(Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Z
areturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jpackage/internal/OverridableResource;
0 5 1 sourceType Ljdk/jpackage/internal/OverridableResource$Source;
MethodParameters:
Name Flags
sourceType
static int[] $SWITCH_TABLE$jdk$jpackage$internal$OverridableResource$Source();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic jdk.jpackage.internal.OverridableResource.$SWITCH_TABLE$jdk$jpackage$internal$OverridableResource$Source:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic jdk.jpackage.internal.OverridableResource$Source.values:()[Ljdk/jpackage/internal/OverridableResource$Source;
arraylength
newarray 10
astore 0
2: aload 0
getstatic jdk.jpackage.internal.OverridableResource$Source.DefaultResource:Ljdk/jpackage/internal/OverridableResource$Source;
invokevirtual jdk.jpackage.internal.OverridableResource$Source.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic jdk.jpackage.internal.OverridableResource$Source.External:Ljdk/jpackage/internal/OverridableResource$Source;
invokevirtual jdk.jpackage.internal.OverridableResource$Source.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic jdk.jpackage.internal.OverridableResource$Source.ResourceDir:Ljdk/jpackage/internal/OverridableResource$Source;
invokevirtual jdk.jpackage.internal.OverridableResource$Source.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic jdk.jpackage.internal.OverridableResource.$SWITCH_TABLE$jdk$jpackage$internal$OverridableResource$Source:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
private java.util.Map$Entry lambda$0(jdk.jpackage.internal.OverridableResource$Source);
descriptor: (Ljdk/jpackage/internal/OverridableResource$Source;)Ljava/util/Map$Entry;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
aload 1
invokevirtual jdk.jpackage.internal.OverridableResource.getHandler:(Ljdk/jpackage/internal/OverridableResource$Source;)Ljdk/jpackage/internal/OverridableResource$SourceHandler;
invokestatic java.util.Map.entry:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map$Entry;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/OverridableResource;
0 1 1 source Ljdk/jpackage/internal/OverridableResource$Source;
private static java.nio.file.Path lambda$1(jdk.jpackage.internal.OverridableResource$ResourceConsumer);
descriptor: (Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljava/nio/file/Path;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokeinterface jdk.jpackage.internal.OverridableResource$ResourceConsumer.publicName:()Ljava/nio/file/Path;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.nio.file.Path lambda$2(jdk.jpackage.internal.OverridableResource$ResourceConsumer);
descriptor: (Ljdk/jpackage/internal/OverridableResource$ResourceConsumer;)Ljava/nio/file/Path;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokeinterface jdk.jpackage.internal.OverridableResource$ResourceConsumer.publicName:()Ljava/nio/file/Path;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$3(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"
NestMembers:
jdk.jpackage.internal.OverridableResource$1 jdk.jpackage.internal.OverridableResource$2 jdk.jpackage.internal.OverridableResource$ResourceConsumer jdk.jpackage.internal.OverridableResource$Source jdk.jpackage.internal.OverridableResource$SourceHandler
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
jdk.jpackage.internal.OverridableResource$1
jdk.jpackage.internal.OverridableResource$2
private abstract ResourceConsumer = jdk.jpackage.internal.OverridableResource$ResourceConsumer of jdk.jpackage.internal.OverridableResource
final Source = jdk.jpackage.internal.OverridableResource$Source of jdk.jpackage.internal.OverridableResource
private abstract SourceHandler = jdk.jpackage.internal.OverridableResource$SourceHandler of jdk.jpackage.internal.OverridableResource