public class org.graalvm.component.installer.commands.Uninstaller
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.component.installer.commands.Uninstaller
super_class: java.lang.Object
{
private final org.graalvm.component.installer.Feedback feedback;
descriptor: Lorg/graalvm/component/installer/Feedback;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.component.installer.model.ComponentInfo componentInfo;
descriptor: Lorg/graalvm/component/installer/model/ComponentInfo;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.component.installer.model.ComponentRegistry registry;
descriptor: Lorg/graalvm/component/installer/model/ComponentRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.component.installer.FileOperations fileOps;
descriptor: Lorg/graalvm/component/installer/FileOperations;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.graalvm.component.installer.commands.PreRemoveProcess preRemove;
descriptor: Lorg/graalvm/component/installer/commands/PreRemoveProcess;
flags: (0x0002) ACC_PRIVATE
private java.util.Set<java.lang.String> preservePaths;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/lang/String;>;
private boolean dryRun;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean ignoreFailedDeletions;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path installPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private boolean rebuildPolyglot;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.util.Set<java.lang.String> directoriesToDelete;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
public void <init>(org.graalvm.component.installer.Feedback, org.graalvm.component.installer.FileOperations, org.graalvm.component.installer.model.ComponentInfo, org.graalvm.component.installer.model.ComponentRegistry);
descriptor: (Lorg/graalvm/component/installer/Feedback;Lorg/graalvm/component/installer/FileOperations;Lorg/graalvm/component/installer/model/ComponentInfo;Lorg/graalvm/component/installer/model/ComponentRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
putfield org.graalvm.component.installer.commands.Uninstaller.preservePaths:Ljava/util/Set;
2: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.graalvm.component.installer.commands.Uninstaller.directoriesToDelete:Ljava/util/Set;
3: aload 0
aload 1
putfield org.graalvm.component.installer.commands.Uninstaller.feedback:Lorg/graalvm/component/installer/Feedback;
4: aload 0
aload 3
putfield org.graalvm.component.installer.commands.Uninstaller.componentInfo:Lorg/graalvm/component/installer/model/ComponentInfo;
5: aload 0
aload 4
putfield org.graalvm.component.installer.commands.Uninstaller.registry:Lorg/graalvm/component/installer/model/ComponentRegistry;
6: aload 0
aload 2
putfield org.graalvm.component.installer.commands.Uninstaller.fileOps:Lorg/graalvm/component/installer/FileOperations;
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
0 8 1 feedback Lorg/graalvm/component/installer/Feedback;
0 8 2 fops Lorg/graalvm/component/installer/FileOperations;
0 8 3 componentInfo Lorg/graalvm/component/installer/model/ComponentInfo;
0 8 4 registry Lorg/graalvm/component/installer/model/ComponentRegistry;
MethodParameters:
Name Flags
feedback
fops
componentInfo
registry
public void uninstall();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.component.installer.commands.Uninstaller.uninstallContent:()V
1: aload 0
invokevirtual org.graalvm.component.installer.commands.Uninstaller.isDryRun:()Z
ifne 3
2: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.registry:Lorg/graalvm/component/installer/model/ComponentRegistry;
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.componentInfo:Lorg/graalvm/component/installer/model/ComponentInfo;
invokevirtual org.graalvm.component.installer.model.ComponentRegistry.removeComponent:(Lorg/graalvm/component/installer/model/ComponentInfo;)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
Exceptions:
throws java.io.IOException
public boolean isRebuildPolyglot();
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.Uninstaller.rebuildPolyglot:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
void uninstallContent();
descriptor: ()V
flags: (0x0000)
Code:
stack=7, locals=7, args_size=1
start local 0 0: aload 0
new org.graalvm.component.installer.commands.PreRemoveProcess
dup
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.installPath:Ljava/nio/file/Path;
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.fileOps:Lorg/graalvm/component/installer/FileOperations;
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.feedback:Lorg/graalvm/component/installer/Feedback;
invokespecial org.graalvm.component.installer.commands.PreRemoveProcess.<init>:(Ljava/nio/file/Path;Lorg/graalvm/component/installer/FileOperations;Lorg/graalvm/component/installer/Feedback;)V
1: aload 0
invokevirtual org.graalvm.component.installer.commands.Uninstaller.isDryRun:()Z
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.setDryRun:(Z)Lorg/graalvm/component/installer/commands/PreRemoveProcess;
2: aload 0
invokevirtual org.graalvm.component.installer.commands.Uninstaller.isIgnoreFailedDeletions:()Z
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.setIgnoreFailedDeletions:(Z)Lorg/graalvm/component/installer/commands/PreRemoveProcess;
3: putfield org.graalvm.component.installer.commands.Uninstaller.preRemove:Lorg/graalvm/component/installer/commands/PreRemoveProcess;
4: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.componentInfo:Lorg/graalvm/component/installer/model/ComponentInfo;
invokevirtual org.graalvm.component.installer.model.ComponentInfo.getPaths:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 22
StackMap locals: org.graalvm.component.installer.commands.Uninstaller top java.util.Iterator
StackMap stack:
5: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 6: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.preservePaths:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 9
7: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "INSTALL_SkippingSharedFile"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokeinterface org.graalvm.component.installer.Feedback.verboseOutput:(Ljava/lang/String;[Ljava/lang/Object;)Z
pop
8: goto 22
9: StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.lang.String java.util.Iterator
StackMap stack:
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.installPath:Ljava/nio/file/Path;
aload 1
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 3
start local 3 10: aload 3
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 19
11: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.preservePaths:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 16
StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.lang.String java.util.Iterator java.nio.file.Path top java.util.Iterator
StackMap stack:
12: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 13: aload 4
invokestatic org.graalvm.component.installer.SystemUtils.fromCommonRelative:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 6
start local 6 14: aload 6
aload 1
invokeinterface java.nio.file.Path.startsWith:(Ljava/lang/String;)Z
ifeq 16
15: goto 22
end local 6 end local 4 16: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
17: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.directoriesToDelete:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
18: goto 22
19: StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.lang.String java.util.Iterator java.nio.file.Path
StackMap stack:
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "UNINSTALL_DeletingFile"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokeinterface org.graalvm.component.installer.Feedback.verboseOutput:(Ljava/lang/String;[Ljava/lang/Object;)Z
pop
20: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.dryRun:Z
ifne 22
21: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.preRemove:Lorg/graalvm/component/installer/commands/PreRemoveProcess;
aload 3
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.deleteOneFile:(Ljava/nio/file/Path;)V
end local 3 end local 1 22: StackMap locals: org.graalvm.component.installer.commands.Uninstaller top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
23: new java.util.ArrayList
dup
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.directoriesToDelete:Ljava/util/Set;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 1
start local 1 24: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.preRemove:Lorg/graalvm/component/installer/commands/PreRemoveProcess;
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.componentInfo:Lorg/graalvm/component/installer/model/ComponentInfo;
invokevirtual org.graalvm.component.installer.commands.PreRemoveProcess.processComponent:(Lorg/graalvm/component/installer/model/ComponentInfo;)V
25: aload 1
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
26: aload 1
invokestatic java.util.Collections.reverse:(Ljava/util/List;)V
27: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 39
StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.util.List top java.util.Iterator
StackMap stack:
28: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 29: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.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 30: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "UNINSTALL_DeletingDirectory"
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
31: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.dryRun:Z
ifne 39
32: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.fileOps:Lorg/graalvm/component/installer/FileOperations;
aload 4
invokevirtual org.graalvm.component.installer.FileOperations.deleteFile:(Ljava/nio/file/Path;)V
33: goto 39
StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.util.List java.lang.String java.util.Iterator java.nio.file.Path
StackMap stack: java.io.IOException
34: astore 5
start local 5 35: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.ignoreFailedDeletions:Z
ifeq 38
36: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "INSTALL_FailedToDeleteDirectory"
aload 5
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 5
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
37: goto 39
38: StackMap locals: java.io.IOException
StackMap stack:
aload 5
athrow
end local 5 end local 4 end local 2 39: StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 28
40: aload 0
aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.componentInfo:Lorg/graalvm/component/installer/model/ComponentInfo;
invokevirtual org.graalvm.component.installer.model.ComponentInfo.isPolyglotRebuild:()Z
ifne 44
41: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.componentInfo:Lorg/graalvm/component/installer/model/ComponentInfo;
invokevirtual org.graalvm.component.installer.model.ComponentInfo.getPaths:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/graalvm/component/installer/commands/Uninstaller.lambda$0(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
42: invokeinterface java.util.stream.Stream.findAny:()Ljava/util/Optional;
43: invokevirtual java.util.Optional.isPresent:()Z
ifne 44
iconst_0
goto 45
StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.util.List
StackMap stack: org.graalvm.component.installer.commands.Uninstaller
44: iconst_1
45: StackMap locals: org.graalvm.component.installer.commands.Uninstaller java.util.List
StackMap stack: org.graalvm.component.installer.commands.Uninstaller int
putfield org.graalvm.component.installer.commands.Uninstaller.rebuildPolyglot:Z
46: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
6 22 1 p Ljava/lang/String;
10 22 3 toDelete Ljava/nio/file/Path;
13 16 4 s Ljava/lang/String;
14 16 6 x Ljava/nio/file/Path;
24 47 1 dirNames Ljava/util/List<Ljava/lang/String;>;
29 39 2 s Ljava/lang/String;
30 39 4 p Ljava/nio/file/Path;
35 39 5 ex Ljava/io/IOException;
Exception table:
from to target type
32 33 34 Class java.io.IOException
Exceptions:
throws java.io.IOException
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.Uninstaller.ignoreFailedDeletions:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
public void setIgnoreFailedDeletions(boolean);
descriptor: (Z)V
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.Uninstaller.ignoreFailedDeletions:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
0 2 1 ignoreFailedDeletions Z
MethodParameters:
Name Flags
ignoreFailedDeletions
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.Uninstaller.dryRun:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
public void setDryRun(boolean);
descriptor: (Z)V
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.Uninstaller.dryRun:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
0 2 1 dryRun Z
MethodParameters:
Name Flags
dryRun
public java.nio.file.Path getInstallPath();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.installPath:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
public void setInstallPath(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.graalvm.component.installer.commands.Uninstaller.installPath:Ljava/nio/file/Path;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
0 2 1 installPath Ljava/nio/file/Path;
MethodParameters:
Name Flags
installPath
public java.util.Set<java.lang.String> getPreservePaths();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.preservePaths:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public void setPreservePaths(java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Set;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.graalvm.component.installer.commands.Uninstaller.preservePaths:Ljava/util/Set;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
0 2 1 preservePaths Ljava/util/Set<Ljava/lang/String;>;
Signature: (Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
preservePaths
public org.graalvm.component.installer.model.ComponentInfo getComponentInfo();
descriptor: ()Lorg/graalvm/component/installer/model/ComponentInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.component.installer.commands.Uninstaller.componentInfo:Lorg/graalvm/component/installer/model/ComponentInfo;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/component/installer/commands/Uninstaller;
private static boolean lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 1
aload 0
ldc "lib/installer/components/polyglot/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 p Ljava/lang/String;
}
SourceFile: "Uninstaller.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles