public class org.graalvm.component.installer.commands.PreRemoveProcess
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.component.installer.commands.PreRemoveProcess
super_class: java.lang.Object
{
private final java.nio.file.Path installPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.component.installer.Feedback feedback;
descriptor: Lorg/graalvm/component/installer/Feedback;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<org.graalvm.component.installer.model.ComponentInfo> infos;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/graalvm/component/installer/model/ComponentInfo;>;
private final org.graalvm.component.installer.FileOperations fileOps;
descriptor: Lorg/graalvm/component/installer/FileOperations;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean rebuildPolyglot;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean dryRun;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean ignoreFailedDeletions;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.Set<java.lang.String> knownPaths;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/lang/String;>;
public void <init>(java.nio.file.Path, org.graalvm.component.installer.FileOperations, org.graalvm.component.installer.Feedback);
descriptor: (Ljava/nio/file/Path;Lorg/graalvm/component/installer/FileOperations;Lorg/graalvm/component/installer/Feedback;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.graalvm.component.installer.commands.PreRemoveProcess.infos:Ljava/util/List;
2: aload 0
aload 3
ldc Lorg/graalvm/component/installer/commands/PreRemoveProcess;
invokeinterface org.graalvm.component.installer.Feedback.withBundle:(Ljava/lang/Class;)Lorg/graalvm/component/installer/Feedback;
putfield org.graalvm.component.installer.commands.PreRemoveProcess.feedback:Lorg/graalvm/component/installer/Feedback;
3: aload 0
aload 1
putfield org.graalvm.component.installer.commands.PreRemoveProcess.installPath:Ljava/nio/file/Path;
4: aload 0
aload 2
putfield org.graalvm.component.installer.commands.PreRemoveProcess.fileOps:Lorg/graalvm/component/installer/FileOperations;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 6 1 instPath Ljava/nio/file/Path;
0 6 2 fops Lorg/graalvm/component/installer/FileOperations;
0 6 3 fb Lorg/graalvm/component/installer/Feedback;
MethodParameters:
Name Flags
instPath
fops
fb
public boolean isDryRun();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.dryRun:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
public org.graalvm.component.installer.commands.PreRemoveProcess setDryRun(boolean);
descriptor: (Z)Lorg/graalvm/component/installer/commands/PreRemoveProcess;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.graalvm.component.installer.commands.PreRemoveProcess.dryRun:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 2 1 dryRun Z
MethodParameters:
Name Flags
dryRun
public boolean isIgnoreFailedDeletions();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.ignoreFailedDeletions:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
public org.graalvm.component.installer.commands.PreRemoveProcess setIgnoreFailedDeletions(boolean);
descriptor: (Z)Lorg/graalvm/component/installer/commands/PreRemoveProcess;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.graalvm.component.installer.commands.PreRemoveProcess.ignoreFailedDeletions:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 2 1 ignoreFailedDeletions Z
MethodParameters:
Name Flags
ignoreFailedDeletions
public void addComponentInfo(org.graalvm.component.installer.model.ComponentInfo);
descriptor: (Lorg/graalvm/component/installer/model/ComponentInfo;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.infos:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 2 1 info Lorg/graalvm/component/installer/model/ComponentInfo;
MethodParameters:
Name Flags
info
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.infos:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: org.graalvm.component.installer.commands.PreRemoveProcess top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.component.installer.model.ComponentInfo
astore 1
start local 1 2: aload 0
aload 1
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.processComponent:(Lorg/graalvm/component/installer/model/ComponentInfo;)V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.rebuildPolyglot:Z
ifeq 7
5: ldc "bin/"
invokestatic org.graalvm.component.installer.SystemUtils.fromCommonString:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 6: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "INSTALL_RebuildPolyglotNeeded"
iconst_2
anewarray java.lang.Object
dup
iconst_0
getstatic java.io.File.separator:Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.installPath:Ljava/nio/file/Path;
aload 1
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
aastore
invokeinterface org.graalvm.component.installer.Feedback.output:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 1 7: StackMap locals: org.graalvm.component.installer.commands.PreRemoveProcess
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
2 3 1 ci Lorg/graalvm/component/installer/model/ComponentInfo;
6 7 1 p Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
void deleteOneFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.fileOps:Lorg/graalvm/component/installer/FileOperations;
aload 1
invokevirtual org.graalvm.component.installer.FileOperations.deleteFile:(Ljava/nio/file/Path;)V
1: goto 10
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.ignoreFailedDeletions:Z
ifeq 9
4: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 7
5: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "INSTALL_FailedToDeleteDirectory"
aload 2
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
invokevirtual java.io.IOException.getLocalizedMessage:()Ljava/lang/String;
aastore
invokeinterface org.graalvm.component.installer.Feedback.error:(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
6: goto 8
7: StackMap locals: java.io.IOException
StackMap stack:
aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "INSTALL_FailedToDeleteFile"
aload 2
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
invokevirtual java.io.IOException.getLocalizedMessage:()Ljava/lang/String;
aastore
invokeinterface org.graalvm.component.installer.Feedback.error:(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
return
9: StackMap locals:
StackMap stack:
aload 2
athrow
end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 11 1 p Ljava/nio/file/Path;
3 10 2 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
void deleteContentsRecursively(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.dryRun:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
aconst_null
astore 3
3: aload 1
iconst_0
anewarray java.nio.file.FileVisitOption
invokestatic java.nio.file.Files.walk:(Ljava/nio/file/Path;[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
astore 4
start local 4 4: aload 4
invokestatic java.util.Comparator.reverseOrder:()Ljava/util/Comparator;
invokeinterface java.util.stream.Stream.sorted:(Ljava/util/Comparator;)Ljava/util/stream/Stream;
aload 0
aload 1
invokedynamic accept(Lorg/graalvm/component/installer/commands/PreRemoveProcess;Ljava/nio/file/Path;)Ljava/util/function/Consumer;
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;)V
org/graalvm/component/installer/commands/PreRemoveProcess.lambda$0(Ljava/nio/file/Path;Ljava/nio/file/Path;)V (7)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
5: aload 4
ifnull 13
aload 4
invokeinterface java.util.stream.Stream.close:()V
goto 13
StackMap locals: org.graalvm.component.installer.commands.PreRemoveProcess java.nio.file.Path java.lang.Throwable java.lang.Throwable java.util.stream.Stream
StackMap stack: java.lang.Throwable
6: astore 2
aload 4
ifnull 7
aload 4
invokeinterface java.util.stream.Stream.close:()V
end local 4 StackMap locals:
StackMap stack:
7: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
aload 2
ifnonnull 9
aload 3
astore 2
goto 10
StackMap locals:
StackMap stack:
9: aload 2
aload 3
if_acmpeq 10
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 2
athrow
StackMap locals: org.graalvm.component.installer.commands.PreRemoveProcess java.nio.file.Path
StackMap stack: java.io.UncheckedIOException
11: astore 2
start local 2 12: aload 2
invokevirtual java.io.UncheckedIOException.getCause:()Ljava/io/IOException;
athrow
end local 2 13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 14 1 rootPath Ljava/nio/file/Path;
4 7 4 paths Ljava/util/stream/Stream<Ljava/nio/file/Path;>;
12 13 2 ex Ljava/io/UncheckedIOException;
Exception table:
from to target type
4 5 6 any
3 8 8 any
2 11 11 Class java.io.UncheckedIOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
rootPath
private boolean shouldDeletePath(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.installPath:Ljava/nio/file/Path;
aload 1
invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 2
start local 2 1: goto 4
end local 2 StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
2: pop
3: iconst_0
ireturn
start local 2 4: StackMap locals: java.nio.file.Path
StackMap stack:
aload 2
invokestatic org.graalvm.component.installer.SystemUtils.toCommonPath:(Ljava/nio/file/Path;)Ljava/lang/String;
astore 3
start local 3 5: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 7
6: 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 "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
7: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.knownPaths:Ljava/util/Set;
ifnull 8
aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.knownPaths:Ljava/util/Set;
aload 3
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 8
iconst_0
ireturn
StackMap locals:
StackMap stack:
8: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 9 1 toDelete Ljava/nio/file/Path;
1 2 2 rel Ljava/nio/file/Path;
4 9 2 rel Ljava/nio/file/Path;
5 9 3 relString Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
toDelete
void processComponent(org.graalvm.component.installer.model.ComponentInfo);
descriptor: (Lorg/graalvm/component/installer/model/ComponentInfo;)V
flags: (0x0000)
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield org.graalvm.component.installer.commands.PreRemoveProcess.rebuildPolyglot:Z
aload 1
invokevirtual org.graalvm.component.installer.model.ComponentInfo.isPolyglotRebuild:()Z
ior
putfield org.graalvm.component.installer.commands.PreRemoveProcess.rebuildPolyglot:Z
1: aload 1
invokevirtual org.graalvm.component.installer.model.ComponentInfo.getWorkingDirectories:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: org.graalvm.component.installer.commands.PreRemoveProcess org.graalvm.component.installer.model.ComponentInfo top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.installPath:Ljava/nio/file/Path;
aload 2
invokestatic org.graalvm.component.installer.SystemUtils.fromCommonRelative:(Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 4
start local 4 4: aload 0
getfield org.graalvm.component.installer.commands.PreRemoveProcess.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "UNINSTALL_DeletingDirectoryRecursively"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokeinterface org.graalvm.component.installer.Feedback.verboseOutput:(Ljava/lang/String;[Ljava/lang/Object;)Z
pop
5: aload 0
new java.util.HashSet
dup
aload 1
invokevirtual org.graalvm.component.installer.model.ComponentInfo.getPaths:()Ljava/util/List;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
putfield org.graalvm.component.installer.commands.PreRemoveProcess.knownPaths:Ljava/util/Set;
6: aload 0
aload 4
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.deleteContentsRecursively:(Ljava/nio/file/Path;)V
end local 4 end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 9 1 ci Lorg/graalvm/component/installer/model/ComponentInfo;
3 7 2 s Ljava/lang/String;
4 7 4 p Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ci
private void lambda$0(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 2 0: aload 2
aload 1
invokeinterface java.nio.file.Path.equals:(Ljava/lang/Object;)Z
ifne 5
aload 0
aload 2
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.shouldDeletePath:(Ljava/nio/file/Path;)Z
ifeq 5
1: aload 0
aload 2
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.deleteOneFile:(Ljava/nio/file/Path;)V
2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 3
start local 3 4: new java.io.UncheckedIOException
dup
aload 3
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 3 5: StackMap locals:
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/component/installer/commands/PreRemoveProcess;
0 6 2 p Ljava/nio/file/Path;
4 5 3 ex Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
}
SourceFile: "PreRemoveProcess.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles