class javax.swing.TransferHandler$TransferAction extends sun.swing.UIAction implements javax.swing.plaf.UIResource
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.TransferHandler$TransferAction
super_class: sun.swing.UIAction
{
private static final sun.misc.JavaSecurityAccess javaSecurityAccess;
descriptor: Lsun/misc/JavaSecurityAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static java.lang.Object SandboxClipboardKey;
descriptor: Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic sun.misc.SharedSecrets.getJavaSecurityAccess:()Lsun/misc/JavaSecurityAccess;
1: putstatic javax.swing.TransferHandler$TransferAction.javaSecurityAccess:Lsun/misc/JavaSecurityAccess;
2: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic javax.swing.TransferHandler$TransferAction.SandboxClipboardKey:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.swing.UIAction.<init>:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/TransferHandler$TransferAction;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public boolean isEnabled(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.swing.JComponent
ifeq 3
1: aload 1
checkcast javax.swing.JComponent
invokevirtual javax.swing.JComponent.getTransferHandler:()Ljavax/swing/TransferHandler;
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/TransferHandler$TransferAction;
0 4 1 sender Ljava/lang/Object;
MethodParameters:
Name Flags
sender
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.event.ActionEvent.getSource:()Ljava/lang/Object;
astore 2
start local 2 1: new javax.swing.TransferHandler$TransferAction$1
dup
aload 0
aload 1
invokespecial javax.swing.TransferHandler$TransferAction$1.<init>:(Ljavax/swing/TransferHandler$TransferAction;Ljava/awt/event/ActionEvent;)V
astore 3
start local 3 2: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
astore 4
start local 4 3: invokestatic sun.awt.AWTAccessor.getComponentAccessor:()Lsun/awt/AWTAccessor$ComponentAccessor;
aload 2
checkcast java.awt.Component
invokeinterface sun.awt.AWTAccessor$ComponentAccessor.getAccessControlContext:(Ljava/awt/Component;)Ljava/security/AccessControlContext;
astore 5
start local 5 4: invokestatic sun.awt.AWTAccessor.getAWTEventAccessor:()Lsun/awt/AWTAccessor$AWTEventAccessor;
aload 1
invokeinterface sun.awt.AWTAccessor$AWTEventAccessor.getAccessControlContext:(Ljava/awt/AWTEvent;)Ljava/security/AccessControlContext;
astore 6
start local 6 5: aload 5
ifnonnull 8
6: getstatic javax.swing.TransferHandler$TransferAction.javaSecurityAccess:Lsun/misc/JavaSecurityAccess;
aload 3
aload 4
aload 6
invokeinterface sun.misc.JavaSecurityAccess.doIntersectionPrivilege:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;
pop
7: goto 12
8: StackMap locals: javax.swing.TransferHandler$TransferAction java.awt.event.ActionEvent java.lang.Object java.security.PrivilegedAction java.security.AccessControlContext java.security.AccessControlContext java.security.AccessControlContext
StackMap stack:
getstatic javax.swing.TransferHandler$TransferAction.javaSecurityAccess:Lsun/misc/JavaSecurityAccess;
9: new javax.swing.TransferHandler$TransferAction$2
dup
aload 0
aload 3
aload 6
invokespecial javax.swing.TransferHandler$TransferAction$2.<init>:(Ljavax/swing/TransferHandler$TransferAction;Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)V
10: aload 4
aload 5
11: invokeinterface sun.misc.JavaSecurityAccess.doIntersectionPrivilege:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;
pop
12: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/swing/TransferHandler$TransferAction;
0 13 1 e Ljava/awt/event/ActionEvent;
1 13 2 src Ljava/lang/Object;
2 13 3 action Ljava/security/PrivilegedAction<Ljava/lang/Void;>;
3 13 4 stack Ljava/security/AccessControlContext;
4 13 5 srcAcc Ljava/security/AccessControlContext;
5 13 6 eventAcc Ljava/security/AccessControlContext;
MethodParameters:
Name Flags
e final
private void actionPerformedImpl(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.event.ActionEvent.getSource:()Ljava/lang/Object;
astore 2
start local 2 1: aload 2
instanceof javax.swing.JComponent
ifeq 22
2: aload 2
checkcast javax.swing.JComponent
astore 3
start local 3 3: aload 3
invokevirtual javax.swing.JComponent.getTransferHandler:()Ljavax/swing/TransferHandler;
astore 4
start local 4 4: aload 0
aload 3
invokevirtual javax.swing.TransferHandler$TransferAction.getClipboard:(Ljavax/swing/JComponent;)Ljava/awt/datatransfer/Clipboard;
astore 5
start local 5 5: aload 0
ldc "Name"
invokevirtual javax.swing.TransferHandler$TransferAction.getValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 6: aconst_null
astore 7
start local 7 7: aload 5
ifnull 20
aload 4
ifnull 20
aload 6
ifnull 20
8: ldc "cut"
aload 6
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
9: aload 4
aload 3
aload 5
iconst_2
invokevirtual javax.swing.TransferHandler.exportToClipboard:(Ljavax/swing/JComponent;Ljava/awt/datatransfer/Clipboard;I)V
10: goto 20
StackMap locals: javax.swing.TransferHandler$TransferAction java.awt.event.ActionEvent java.lang.Object javax.swing.JComponent javax.swing.TransferHandler java.awt.datatransfer.Clipboard java.lang.String java.awt.datatransfer.Transferable
StackMap stack:
11: ldc "copy"
aload 6
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 14
12: aload 4
aload 3
aload 5
iconst_1
invokevirtual javax.swing.TransferHandler.exportToClipboard:(Ljavax/swing/JComponent;Ljava/awt/datatransfer/Clipboard;I)V
13: goto 20
StackMap locals:
StackMap stack:
14: ldc "paste"
aload 6
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 20
15: aload 5
aconst_null
invokevirtual java.awt.datatransfer.Clipboard.getContents:(Ljava/lang/Object;)Ljava/awt/datatransfer/Transferable;
astore 7
16: goto 20
StackMap locals:
StackMap stack: java.lang.IllegalStateException
17: pop
18: invokestatic javax.swing.UIManager.getLookAndFeel:()Ljavax/swing/LookAndFeel;
aload 3
invokevirtual javax.swing.LookAndFeel.provideErrorFeedback:(Ljava/awt/Component;)V
19: return
20: StackMap locals:
StackMap stack:
aload 7
ifnull 22
21: aload 4
new javax.swing.TransferHandler$TransferSupport
dup
aload 3
aload 7
invokespecial javax.swing.TransferHandler$TransferSupport.<init>:(Ljava/awt/Component;Ljava/awt/datatransfer/Transferable;)V
invokevirtual javax.swing.TransferHandler.importData:(Ljavax/swing/TransferHandler$TransferSupport;)Z
pop
end local 7 end local 6 end local 5 end local 4 end local 3 22: StackMap locals: javax.swing.TransferHandler$TransferAction java.awt.event.ActionEvent java.lang.Object
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljavax/swing/TransferHandler$TransferAction;
0 23 1 e Ljava/awt/event/ActionEvent;
1 23 2 src Ljava/lang/Object;
3 22 3 c Ljavax/swing/JComponent;
4 22 4 th Ljavax/swing/TransferHandler;
5 22 5 clipboard Ljava/awt/datatransfer/Clipboard;
6 22 6 name Ljava/lang/String;
7 22 7 trans Ljava/awt/datatransfer/Transferable;
Exception table:
from to target type
7 16 17 Class java.lang.IllegalStateException
MethodParameters:
Name Flags
e
private java.awt.datatransfer.Clipboard getClipboard(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljava/awt/datatransfer/Clipboard;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: invokestatic sun.swing.SwingUtilities2.canAccessSystemClipboard:()Z
ifeq 2
1: aload 1
invokevirtual javax.swing.JComponent.getToolkit:()Ljava/awt/Toolkit;
invokevirtual java.awt.Toolkit.getSystemClipboard:()Ljava/awt/datatransfer/Clipboard;
areturn
2: StackMap locals:
StackMap stack:
invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
3: getstatic javax.swing.TransferHandler$TransferAction.SandboxClipboardKey:Ljava/lang/Object;
invokevirtual sun.awt.AppContext.get:(Ljava/lang/Object;)Ljava/lang/Object;
4: checkcast java.awt.datatransfer.Clipboard
astore 2
start local 2 5: aload 2
ifnonnull 10
6: new java.awt.datatransfer.Clipboard
dup
ldc "Sandboxed Component Clipboard"
invokespecial java.awt.datatransfer.Clipboard.<init>:(Ljava/lang/String;)V
astore 2
7: invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
getstatic javax.swing.TransferHandler$TransferAction.SandboxClipboardKey:Ljava/lang/Object;
8: aload 2
9: invokevirtual sun.awt.AppContext.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: StackMap locals: java.awt.datatransfer.Clipboard
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/swing/TransferHandler$TransferAction;
0 11 1 c Ljavax/swing/JComponent;
5 11 2 clipboard Ljava/awt/datatransfer/Clipboard;
MethodParameters:
Name Flags
c
}
SourceFile: "TransferHandler.java"
NestHost: javax.swing.TransferHandler
InnerClasses:
TransferAction = javax.swing.TransferHandler$TransferAction of javax.swing.TransferHandler
javax.swing.TransferHandler$TransferAction$1
javax.swing.TransferHandler$TransferAction$2
public final TransferSupport = javax.swing.TransferHandler$TransferSupport of javax.swing.TransferHandler
public abstract AWTEventAccessor = sun.awt.AWTAccessor$AWTEventAccessor of sun.awt.AWTAccessor
public abstract ComponentAccessor = sun.awt.AWTAccessor$ComponentAccessor of sun.awt.AWTAccessor