class sun.security.tools.policytool.NewPolicyPermOKButtonListener implements java.awt.event.ActionListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.tools.policytool.NewPolicyPermOKButtonListener
super_class: java.lang.Object
{
private sun.security.tools.policytool.PolicyTool tool;
descriptor: Lsun/security/tools/policytool/PolicyTool;
flags: (0x0002) ACC_PRIVATE
private sun.security.tools.policytool.ToolWindow tw;
descriptor: Lsun/security/tools/policytool/ToolWindow;
flags: (0x0002) ACC_PRIVATE
private sun.security.tools.policytool.ToolDialog listDialog;
descriptor: Lsun/security/tools/policytool/ToolDialog;
flags: (0x0002) ACC_PRIVATE
private sun.security.tools.policytool.ToolDialog infoDialog;
descriptor: Lsun/security/tools/policytool/ToolDialog;
flags: (0x0002) ACC_PRIVATE
private boolean edit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.tools.policytool.PolicyTool, sun.security.tools.policytool.ToolWindow, sun.security.tools.policytool.ToolDialog, sun.security.tools.policytool.ToolDialog, boolean);
descriptor: (Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;Lsun/security/tools/policytool/ToolDialog;Lsun/security/tools/policytool/ToolDialog;Z)V
flags: (0x0000)
Code:
stack=2, locals=6, args_size=6
start local 0 // sun.security.tools.policytool.NewPolicyPermOKButtonListener this
start local 1 // sun.security.tools.policytool.PolicyTool tool
start local 2 // sun.security.tools.policytool.ToolWindow tw
start local 3 // sun.security.tools.policytool.ToolDialog listDialog
start local 4 // sun.security.tools.policytool.ToolDialog infoDialog
start local 5 // boolean edit
0: .line 3171
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 3176
aload 0 /* this */
aload 1 /* tool */
putfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
2: .line 3177
aload 0 /* this */
aload 2 /* tw */
putfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
3: .line 3178
aload 0 /* this */
aload 3 /* listDialog */
putfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.listDialog:Lsun/security/tools/policytool/ToolDialog;
4: .line 3179
aload 0 /* this */
aload 4 /* infoDialog */
putfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.infoDialog:Lsun/security/tools/policytool/ToolDialog;
5: .line 3180
aload 0 /* this */
iload 5 /* edit */
putfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.edit:Z
6: .line 3181
return
end local 5 // boolean edit
end local 4 // sun.security.tools.policytool.ToolDialog infoDialog
end local 3 // sun.security.tools.policytool.ToolDialog listDialog
end local 2 // sun.security.tools.policytool.ToolWindow tw
end local 1 // sun.security.tools.policytool.PolicyTool tool
end local 0 // sun.security.tools.policytool.NewPolicyPermOKButtonListener this
LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/tools/policytool/NewPolicyPermOKButtonListener;
0 7 1 tool Lsun/security/tools/policytool/PolicyTool;
0 7 2 tw Lsun/security/tools/policytool/ToolWindow;
0 7 3 listDialog Lsun/security/tools/policytool/ToolDialog;
0 7 4 infoDialog Lsun/security/tools/policytool/ToolDialog;
0 7 5 edit Z
MethodParameters:
Name Flags
tool
tw
listDialog
infoDialog
edit
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 // sun.security.tools.policytool.NewPolicyPermOKButtonListener this
start local 1 // java.awt.event.ActionEvent e
0: .line 3188
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.infoDialog:Lsun/security/tools/policytool/ToolDialog;
invokevirtual sun.security.tools.policytool.ToolDialog.getPermFromDialog:()Lsun/security/provider/PolicyParser$PermissionEntry;
1: .line 3187
astore 2 /* pppe */
start local 2 // sun.security.provider.PolicyParser$PermissionEntry pppe
2: .line 3191
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 2 /* pppe */
getfield sun.security.provider.PolicyParser$PermissionEntry.permission:Ljava/lang/String;
aload 2 /* pppe */
getfield sun.security.provider.PolicyParser$PermissionEntry.name:Ljava/lang/String;
aload 2 /* pppe */
getfield sun.security.provider.PolicyParser$PermissionEntry.action:Ljava/lang/String;
invokevirtual sun.security.tools.policytool.PolicyTool.verifyPermission:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
3: .line 3192
goto 11
StackMap locals: sun.security.tools.policytool.NewPolicyPermOKButtonListener java.awt.event.ActionEvent sun.security.provider.PolicyParser$PermissionEntry
StackMap stack: java.lang.ClassNotFoundException
4: pop
5: .line 3193
new java.text.MessageFormat
dup
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
6: .line 3194
ldc "Warning.Class.not.found.class"
7: .line 3193
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
astore 3 /* form */
start local 3 // java.text.MessageFormat form
8: .line 3195
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2 /* pppe */
getfield sun.security.provider.PolicyParser$PermissionEntry.permission:Ljava/lang/String;
aastore
astore 4 /* source */
start local 4 // java.lang.Object[] source
9: .line 3196
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
getfield sun.security.tools.policytool.PolicyTool.warnings:Ljava/util/Vector;
aload 3 /* form */
aload 4 /* source */
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
10: .line 3197
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.infoDialog:Lsun/security/tools/policytool/ToolDialog;
aload 3 /* form */
aload 4 /* source */
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual sun.security.tools.policytool.ToolWindow.displayStatusDialog:(Ljava/awt/Window;Ljava/lang/String;)V
end local 4 // java.lang.Object[] source
end local 3 // java.text.MessageFormat form
11: .line 3202
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.listDialog:Lsun/security/tools/policytool/ToolDialog;
bipush 8
invokevirtual sun.security.tools.policytool.ToolDialog.getComponent:(I)Ljava/awt/Component;
checkcast sun.security.tools.policytool.TaggedList
12: .line 3201
astore 3 /* permList */
start local 3 // sun.security.tools.policytool.TaggedList permList
13: .line 3204
aload 2 /* pppe */
invokestatic sun.security.tools.policytool.ToolDialog.PermissionEntryToUserFriendlyString:(Lsun/security/provider/PolicyParser$PermissionEntry;)Ljava/lang/String;
astore 4 /* permString */
start local 4 // java.lang.String permString
14: .line 3205
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.edit:Z
ifeq 18
15: .line 3207
aload 3 /* permList */
invokevirtual sun.security.tools.policytool.TaggedList.getSelectedIndex:()I
istore 5 /* which */
start local 5 // int which
16: .line 3208
aload 3 /* permList */
aload 4 /* permString */
aload 2 /* pppe */
iload 5 /* which */
invokevirtual sun.security.tools.policytool.TaggedList.replaceTaggedItem:(Ljava/lang/String;Ljava/lang/Object;I)V
end local 5 // int which
17: .line 3209
goto 19
18: .line 3211
StackMap locals: sun.security.tools.policytool.TaggedList java.lang.String
StackMap stack:
aload 3 /* permList */
aload 4 /* permString */
aload 2 /* pppe */
invokevirtual sun.security.tools.policytool.TaggedList.addTaggedItem:(Ljava/lang/String;Ljava/lang/Object;)V
19: .line 3213
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.infoDialog:Lsun/security/tools/policytool/ToolDialog;
invokevirtual sun.security.tools.policytool.ToolDialog.dispose:()V
end local 4 // java.lang.String permString
end local 3 // sun.security.tools.policytool.TaggedList permList
end local 2 // sun.security.provider.PolicyParser$PermissionEntry pppe
20: .line 3215
goto 26
StackMap locals: sun.security.tools.policytool.NewPolicyPermOKButtonListener java.awt.event.ActionEvent
StackMap stack: java.lang.reflect.InvocationTargetException
21: astore 2 /* ite */
start local 2 // java.lang.reflect.InvocationTargetException ite
22: .line 3216
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.infoDialog:Lsun/security/tools/policytool/ToolDialog;
aload 2 /* ite */
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
end local 2 // java.lang.reflect.InvocationTargetException ite
23: goto 26
24: .line 3217
StackMap locals:
StackMap stack: java.lang.Exception
astore 2 /* ee */
start local 2 // java.lang.Exception ee
25: .line 3218
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
aload 0 /* this */
getfield sun.security.tools.policytool.NewPolicyPermOKButtonListener.infoDialog:Lsun/security/tools/policytool/ToolDialog;
aload 2 /* ee */
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
end local 2 // java.lang.Exception ee
26: .line 3220
StackMap locals:
StackMap stack:
return
end local 1 // java.awt.event.ActionEvent e
end local 0 // sun.security.tools.policytool.NewPolicyPermOKButtonListener this
LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/security/tools/policytool/NewPolicyPermOKButtonListener;
0 27 1 e Ljava/awt/event/ActionEvent;
2 20 2 pppe Lsun/security/provider/PolicyParser$PermissionEntry;
8 11 3 form Ljava/text/MessageFormat;
9 11 4 source [Ljava/lang/Object;
13 20 3 permList Lsun/security/tools/policytool/TaggedList;
14 20 4 permString Ljava/lang/String;
16 17 5 which I
22 23 2 ite Ljava/lang/reflect/InvocationTargetException;
25 26 2 ee Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.ClassNotFoundException
0 20 21 Class java.lang.reflect.InvocationTargetException
0 20 24 Class java.lang.Exception
MethodParameters:
Name Flags
e
}
SourceFile: "PolicyTool.java"
InnerClasses:
public PermissionEntry = sun.security.provider.PolicyParser$PermissionEntry of sun.security.provider.PolicyParser