class sun.lwawt.macosx.CFileDialog$Task implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.lwawt.macosx.CFileDialog$Task
super_class: java.lang.Object
{
final sun.lwawt.macosx.CFileDialog this$0;
descriptor: Lsun/lwawt/macosx/CFileDialog;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private void <init>(sun.lwawt.macosx.CFileDialog);
descriptor: (Lsun/lwawt/macosx/CFileDialog;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 // sun.lwawt.macosx.CFileDialog$Task this
0: .line 44
aload 0 /* this */
aload 1
putfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // sun.lwawt.macosx.CFileDialog$Task this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CFileDialog$Task;
MethodParameters:
Name Flags
this$0 final
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=12, args_size=1
start local 0 // sun.lwawt.macosx.CFileDialog$Task this
0: .line 50
new sun.security.action.GetBooleanAction
dup
ldc "apple.awt.use-file-dialog-packages"
invokespecial sun.security.action.GetBooleanAction.<init>:(Ljava/lang/String;)V
1: .line 49
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
2: .line 50
ifeq 4
3: .line 49
iconst_0
goto 5
StackMap locals:
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: istore 1 /* navigateApps */
start local 1 // boolean navigateApps
6: .line 52
new sun.security.action.GetBooleanAction
dup
ldc "apple.awt.fileDialogForDirectories"
invokespecial sun.security.action.GetBooleanAction.<init>:(Ljava/lang/String;)V
7: .line 51
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 2 /* chooseDirectories */
start local 2 // boolean chooseDirectories
8: .line 54
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.getMode:()I
istore 3 /* dialogMode */
start local 3 // int dialogMode
9: .line 55
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.getTitle:()Ljava/lang/String;
astore 4 /* title */
start local 4 // java.lang.String title
10: .line 56
aload 4 /* title */
ifnonnull 12
11: .line 57
ldc " "
astore 4 /* title */
12: .line 60
StackMap locals: sun.lwawt.macosx.CFileDialog$Task int int int java.lang.String
StackMap stack:
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
aload 4 /* title */
13: .line 61
iload 3 /* dialogMode */
14: .line 62
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.isMultipleMode:()Z
15: .line 63
iload 1 /* navigateApps */
16: .line 64
iload 2 /* chooseDirectories */
17: .line 65
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.getFilenameFilter:()Ljava/io/FilenameFilter;
ifnull 18
iconst_1
goto 19
StackMap locals: sun.lwawt.macosx.CFileDialog$Task int int int java.lang.String
StackMap stack: sun.lwawt.macosx.CFileDialog java.lang.String int int int int
18: iconst_0
19: .line 66
StackMap locals: sun.lwawt.macosx.CFileDialog$Task int int int java.lang.String
StackMap stack: sun.lwawt.macosx.CFileDialog java.lang.String int int int int int
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.getDirectory:()Ljava/lang/String;
20: .line 67
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.getFile:()Ljava/lang/String;
21: .line 60
invokevirtual sun.lwawt.macosx.CFileDialog.nativeRunFileDialog:(Ljava/lang/String;IZZZZLjava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
astore 5 /* userFileNames */
start local 5 // java.lang.String[] userFileNames
22: .line 69
aconst_null
astore 6 /* directory */
start local 6 // java.lang.String directory
23: .line 70
aconst_null
astore 7 /* file */
start local 7 // java.lang.String file
24: .line 71
aconst_null
astore 8 /* files */
start local 8 // java.io.File[] files
25: .line 73
aload 5 /* userFileNames */
ifnull 37
26: .line 75
aload 5 /* userFileNames */
arraylength
istore 9 /* filesNumber */
start local 9 // int filesNumber
27: .line 76
iload 9 /* filesNumber */
anewarray java.io.File
astore 8 /* files */
28: .line 77
iconst_0
istore 10 /* i */
start local 10 // int i
29: goto 32
30: .line 78
StackMap locals: sun.lwawt.macosx.CFileDialog$Task int int int java.lang.String java.lang.String[] java.lang.String java.lang.String java.io.File[] int int
StackMap stack:
aload 8 /* files */
iload 10 /* i */
new java.io.File
dup
aload 5 /* userFileNames */
iload 10 /* i */
aaload
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
aastore
31: .line 77
iinc 10 /* i */ 1
StackMap locals:
StackMap stack:
32: iload 10 /* i */
iload 9 /* filesNumber */
if_icmplt 30
end local 10 // int i
33: .line 81
aload 8 /* files */
iconst_0
aaload
invokevirtual java.io.File.getParent:()Ljava/lang/String;
astore 6 /* directory */
34: .line 83
aload 6 /* directory */
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 36
35: .line 84
new java.lang.StringBuilder
dup
aload 6 /* directory */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6 /* directory */
36: .line 87
StackMap locals:
StackMap stack:
aload 8 /* files */
iconst_0
aaload
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 7 /* file */
end local 9 // int filesNumber
37: .line 91
StackMap locals:
StackMap stack:
invokestatic sun.awt.AWTAccessor.getFileDialogAccessor:()Lsun/awt/AWTAccessor$FileDialogAccessor;
astore 9 /* accessor */
start local 9 // sun.awt.AWTAccessor$FileDialogAccessor accessor
38: .line 92
aload 9 /* accessor */
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
aload 6 /* directory */
invokeinterface sun.awt.AWTAccessor$FileDialogAccessor.setDirectory:(Ljava/awt/FileDialog;Ljava/lang/String;)V
39: .line 93
aload 9 /* accessor */
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
aload 7 /* file */
invokeinterface sun.awt.AWTAccessor$FileDialogAccessor.setFile:(Ljava/awt/FileDialog;Ljava/lang/String;)V
40: .line 94
aload 9 /* accessor */
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
aload 8 /* files */
invokeinterface sun.awt.AWTAccessor$FileDialogAccessor.setFiles:(Ljava/awt/FileDialog;[Ljava/io/File;)V
end local 9 // sun.awt.AWTAccessor$FileDialogAccessor accessor
end local 8 // java.io.File[] files
end local 7 // java.lang.String file
end local 6 // java.lang.String directory
end local 5 // java.lang.String[] userFileNames
end local 4 // java.lang.String title
end local 3 // int dialogMode
end local 2 // boolean chooseDirectories
end local 1 // boolean navigateApps
41: .line 95
goto 45
StackMap locals: sun.lwawt.macosx.CFileDialog$Task
StackMap stack: java.lang.Throwable
42: astore 11
43: .line 97
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.dispose:()V
44: .line 98
aload 11
athrow
45: .line 97
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.lwawt.macosx.CFileDialog$Task.this$0:Lsun/lwawt/macosx/CFileDialog;
getfield sun.lwawt.macosx.CFileDialog.target:Ljava/awt/FileDialog;
invokevirtual java.awt.FileDialog.dispose:()V
46: .line 99
return
end local 0 // sun.lwawt.macosx.CFileDialog$Task this
LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lsun/lwawt/macosx/CFileDialog$Task;
6 41 1 navigateApps Z
8 41 2 chooseDirectories Z
9 41 3 dialogMode I
10 41 4 title Ljava/lang/String;
22 41 5 userFileNames [Ljava/lang/String;
23 41 6 directory Ljava/lang/String;
24 41 7 file Ljava/lang/String;
25 41 8 files [Ljava/io/File;
27 37 9 filesNumber I
29 33 10 i I
38 41 9 accessor Lsun/awt/AWTAccessor$FileDialogAccessor;
Exception table:
from to target type
0 42 42 any
}
SourceFile: "CFileDialog.java"
NestHost: sun.lwawt.macosx.CFileDialog
InnerClasses:
public abstract FileDialogAccessor = sun.awt.AWTAccessor$FileDialogAccessor of sun.awt.AWTAccessor
private Task = sun.lwawt.macosx.CFileDialog$Task of sun.lwawt.macosx.CFileDialog