class jdk.jpackage.internal.AppImageBundler extends jdk.jpackage.internal.AbstractBundler
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jpackage.internal.AppImageBundler
super_class: jdk.jpackage.internal.AbstractBundler
{
private boolean dependentTask;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private jdk.jpackage.internal.AppImageBundler$ParamsValidator paramsValidator;
descriptor: Ljdk/jpackage/internal/AppImageBundler$ParamsValidator;
flags: (0x0002) ACC_PRIVATE
private java.util.function.Function<java.nio.file.Path, jdk.jpackage.internal.AbstractAppImageBuilder> appImageSupplier;
descriptor: Ljava/util/function/Function;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/function/Function<Ljava/nio/file/Path;Ljdk/jpackage/internal/AbstractAppImageBuilder;>;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.jpackage.internal.AbstractBundler.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/AppImageBundler;
public final java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "app.bundler.name"
invokestatic jdk.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/AppImageBundler;
public final java.lang.String getID();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "app"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/AppImageBundler;
public final java.lang.String getBundleType();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "IMAGE"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/AppImageBundler;
public final boolean validate(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
getstatic jdk.jpackage.internal.StandardBundlerParam.PREDEFINED_APP_IMAGE:Ljdk/jpackage/internal/StandardBundlerParam;
invokevirtual jdk.jpackage.internal.StandardBundlerParam.getID:()Ljava/lang/String;
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 4
2: aload 1
invokestatic jdk.jpackage.internal.StandardBundlerParam.isRuntimeInstaller:(Ljava/util/Map;)Z
ifne 4
3: getstatic jdk.jpackage.internal.StandardBundlerParam.LAUNCHER_DATA:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
pop
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.AppImageBundler.paramsValidator:Ljdk/jpackage/internal/AppImageBundler$ParamsValidator;
ifnull 11
5: aload 0
getfield jdk.jpackage.internal.AppImageBundler.paramsValidator:Ljdk/jpackage/internal/AppImageBundler$ParamsValidator;
aload 1
invokeinterface jdk.jpackage.internal.AppImageBundler$ParamsValidator.validate:(Ljava/util/Map;)V
6: goto 11
StackMap locals:
StackMap stack: java.lang.RuntimeException
7: astore 2
start local 2 8: aload 2
invokevirtual java.lang.RuntimeException.getCause:()Ljava/lang/Throwable;
instanceof jdk.jpackage.internal.ConfigException
ifeq 10
9: aload 2
invokevirtual java.lang.RuntimeException.getCause:()Ljava/lang/Throwable;
checkcast jdk.jpackage.internal.ConfigException
athrow
10: StackMap locals: java.lang.RuntimeException
StackMap stack:
new jdk.jpackage.internal.ConfigException
dup
aload 2
invokespecial jdk.jpackage.internal.ConfigException.<init>:(Ljava/lang/Exception;)V
athrow
end local 2 11: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jpackage/internal/AppImageBundler;
0 12 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
8 11 2 re Ljava/lang/RuntimeException;
Exception table:
from to target type
0 6 7 Class java.lang.RuntimeException
Exceptions:
throws jdk.jpackage.internal.ConfigException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Z
MethodParameters:
Name Flags
params
public final java.nio.file.Path execute(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic jdk.jpackage.internal.StandardBundlerParam.isRuntimeInstaller:(Ljava/util/Map;)Z
ifeq 2
1: getstatic jdk.jpackage.internal.StandardBundlerParam.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual jdk.jpackage.internal.AppImageBundler.createAppBundle:(Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
3: areturn
4: StackMap locals:
StackMap stack: jdk.jpackage.internal.PackagerException
astore 3
start local 3 5: aload 3
athrow
end local 3 6: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 7: aload 3
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
8: new jdk.jpackage.internal.PackagerException
dup
aload 3
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jpackage/internal/AppImageBundler;
0 9 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 9 2 outputParentDir Ljava/nio/file/Path;
5 6 3 pe Ljdk/jpackage/internal/PackagerException;
7 9 3 ex Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class jdk.jpackage.internal.PackagerException
2 3 6 Class java.lang.RuntimeException
2 3 6 Class java.io.IOException
2 3 6 Class jdk.jpackage.internal.ConfigException
Exceptions:
throws jdk.jpackage.internal.PackagerException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
outputParentDir
public final boolean supported(boolean);
descriptor: (Z)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/AppImageBundler;
0 1 1 runtimeInstaller Z
MethodParameters:
Name Flags
runtimeInstaller
public final boolean isDefault();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/AppImageBundler;
final jdk.jpackage.internal.AppImageBundler setDependentTask(boolean);
descriptor: (Z)Ljdk/jpackage/internal/AppImageBundler;
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.jpackage.internal.AppImageBundler.dependentTask:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/AppImageBundler;
0 2 1 v Z
MethodParameters:
Name Flags
v
final jdk.jpackage.internal.AppImageBundler setAppImageSupplier(java.util.function.Function<java.nio.file.Path, jdk.jpackage.internal.AbstractAppImageBuilder>);
descriptor: (Ljava/util/function/Function;)Ljdk/jpackage/internal/AppImageBundler;
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jpackage.internal.AppImageBundler.appImageSupplier:Ljava/util/function/Function;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/AppImageBundler;
0 2 1 v Ljava/util/function/Function<Ljava/nio/file/Path;Ljdk/jpackage/internal/AbstractAppImageBuilder;>;
Signature: (Ljava/util/function/Function<Ljava/nio/file/Path;Ljdk/jpackage/internal/AbstractAppImageBuilder;>;)Ljdk/jpackage/internal/AppImageBundler;
MethodParameters:
Name Flags
v
final jdk.jpackage.internal.AppImageBundler setParamsValidator(jdk.jpackage.internal.AppImageBundler$ParamsValidator);
descriptor: (Ljdk/jpackage/internal/AppImageBundler$ParamsValidator;)Ljdk/jpackage/internal/AppImageBundler;
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jpackage.internal.AppImageBundler.paramsValidator:Ljdk/jpackage/internal/AppImageBundler$ParamsValidator;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/AppImageBundler;
0 2 1 v Ljdk/jpackage/internal/AppImageBundler$ParamsValidator;
MethodParameters:
Name Flags
v
private java.nio.file.Path createRoot(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic jdk.jpackage.internal.IOUtils.writableOutputDir:(Ljava/nio/file/Path;)V
1: getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: invokestatic jdk.jpackage.internal.Platform.isMac:()Z
ifeq 4
3: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".app"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
4: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield jdk.jpackage.internal.AppImageBundler.dependentTask:Z
ifne 8
5: ldc "message.creating-app-bundle"
invokestatic jdk.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
6: aload 3
aastore
dup
iconst_1
aload 2
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
aastore
7: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
aload 2
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 9: aload 4
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 13
10: new jdk.jpackage.internal.PackagerException
dup
ldc "error.root-exists"
iconst_1
anewarray java.lang.String
dup
iconst_0
11: aload 4
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
12: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
13: StackMap locals: java.nio.file.Path
StackMap stack:
aload 4
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
14: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jpackage/internal/AppImageBundler;
0 15 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 15 2 outputDirectory Ljava/nio/file/Path;
2 15 3 imageName Ljava/lang/String;
9 15 4 rootDirectory Ljava/nio/file/Path;
Exceptions:
throws jdk.jpackage.internal.PackagerException, java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
outputDirectory
private java.nio.file.Path createAppBundle(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.jpackage.internal.AppImageBundler.createRoot:(Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 3
start local 3 1: aload 0
getfield jdk.jpackage.internal.AppImageBundler.appImageSupplier:Ljava/util/function/Function;
aload 3
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.jpackage.internal.AbstractAppImageBuilder
astore 4
start local 4 2: getstatic jdk.jpackage.internal.StandardBundlerParam.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
ifnonnull 7
3: aload 1
4: aload 4
invokevirtual jdk.jpackage.internal.AbstractAppImageBuilder.getAppLayout:()Ljdk/jpackage/internal/ApplicationLayout;
invokevirtual jdk.jpackage.internal.ApplicationLayout.runtimeHomeDirectory:()Ljava/nio/file/Path;
5: invokestatic jdk.jpackage.internal.JLinkBundlerHelper.execute:(Ljava/util/Map;Ljava/nio/file/Path;)V
6: goto 9
7: StackMap locals: java.nio.file.Path jdk.jpackage.internal.AbstractAppImageBuilder
StackMap stack:
aload 1
aload 4
invokevirtual jdk.jpackage.internal.AbstractAppImageBuilder.getAppLayout:()Ljdk/jpackage/internal/ApplicationLayout;
8: invokestatic jdk.jpackage.internal.StandardBundlerParam.copyPredefinedRuntimeImage:(Ljava/util/Map;Ljdk/jpackage/internal/ApplicationLayout;)V
9: StackMap locals:
StackMap stack:
aload 4
aload 1
invokevirtual jdk.jpackage.internal.AbstractAppImageBuilder.prepareApplicationFiles:(Ljava/util/Map;)V
10: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/jpackage/internal/AppImageBundler;
0 11 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 11 2 outputDirectory Ljava/nio/file/Path;
1 11 3 rootDirectory Ljava/nio/file/Path;
2 11 4 appBuilder Ljdk/jpackage/internal/AbstractAppImageBuilder;
Exceptions:
throws jdk.jpackage.internal.PackagerException, java.io.IOException, jdk.jpackage.internal.ConfigException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
outputDirectory
}
SourceFile: "AppImageBundler.java"
NestMembers:
jdk.jpackage.internal.AppImageBundler$ParamsValidator
InnerClasses:
abstract ParamsValidator = jdk.jpackage.internal.AppImageBundler$ParamsValidator of jdk.jpackage.internal.AppImageBundler