class javax.swing.text.JTextComponent$DefaultTransferHandler extends javax.swing.TransferHandler implements javax.swing.plaf.UIResource
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.JTextComponent$DefaultTransferHandler
super_class: javax.swing.TransferHandler
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.TransferHandler.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/JTextComponent$DefaultTransferHandler;
public void exportToClipboard(javax.swing.JComponent, java.awt.datatransfer.Clipboard, int);
descriptor: (Ljavax/swing/JComponent;Ljava/awt/datatransfer/Clipboard;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof javax.swing.text.JTextComponent
ifeq 13
1: aload 1
checkcast javax.swing.text.JTextComponent
astore 4
start local 4 2: aload 4
invokevirtual javax.swing.text.JTextComponent.getSelectionStart:()I
istore 5
start local 5 3: aload 4
invokevirtual javax.swing.text.JTextComponent.getSelectionEnd:()I
istore 6
start local 6 4: iload 5
iload 6
if_icmpeq 13
5: aload 4
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 7
start local 7 6: aload 7
iload 5
iload 6
iload 5
isub
invokeinterface javax.swing.text.Document.getText:(II)Ljava/lang/String;
astore 8
start local 8 7: new java.awt.datatransfer.StringSelection
dup
aload 8
invokespecial java.awt.datatransfer.StringSelection.<init>:(Ljava/lang/String;)V
astore 9
start local 9 8: aload 2
aload 9
aconst_null
invokevirtual java.awt.datatransfer.Clipboard.setContents:(Ljava/awt/datatransfer/Transferable;Ljava/awt/datatransfer/ClipboardOwner;)V
9: iload 3
iconst_2
if_icmpne 13
10: aload 7
iload 5
iload 6
iload 5
isub
invokeinterface javax.swing.text.Document.remove:(II)V
end local 9 end local 8 end local 7 11: goto 13
StackMap locals: javax.swing.text.JTextComponent$DefaultTransferHandler javax.swing.JComponent java.awt.datatransfer.Clipboard int javax.swing.text.JTextComponent int int
StackMap stack: javax.swing.text.BadLocationException
12: pop
end local 6 end local 5 end local 4 13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljavax/swing/text/JTextComponent$DefaultTransferHandler;
0 14 1 comp Ljavax/swing/JComponent;
0 14 2 clipboard Ljava/awt/datatransfer/Clipboard;
0 14 3 action I
2 13 4 text Ljavax/swing/text/JTextComponent;
3 13 5 p0 I
4 13 6 p1 I
6 11 7 doc Ljavax/swing/text/Document;
7 11 8 srcData Ljava/lang/String;
8 11 9 contents Ljava/awt/datatransfer/StringSelection;
Exception table:
from to target type
5 11 12 Class javax.swing.text.BadLocationException
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
comp
clipboard
action
public boolean importData(javax.swing.JComponent, java.awt.datatransfer.Transferable);
descriptor: (Ljavax/swing/JComponent;Ljava/awt/datatransfer/Transferable;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof javax.swing.text.JTextComponent
ifeq 11
1: aload 0
aload 2
invokeinterface java.awt.datatransfer.Transferable.getTransferDataFlavors:()[Ljava/awt/datatransfer/DataFlavor;
invokevirtual javax.swing.text.JTextComponent$DefaultTransferHandler.getFlavor:([Ljava/awt/datatransfer/DataFlavor;)Ljava/awt/datatransfer/DataFlavor;
astore 3
start local 3 2: aload 3
ifnull 11
3: aload 1
invokevirtual javax.swing.JComponent.getInputContext:()Ljava/awt/im/InputContext;
astore 4
start local 4 4: aload 4
ifnull 6
5: aload 4
invokevirtual java.awt.im.InputContext.endComposition:()V
6: StackMap locals: java.awt.datatransfer.DataFlavor java.awt.im.InputContext
StackMap stack:
aload 2
aload 3
invokeinterface java.awt.datatransfer.Transferable.getTransferData:(Ljava/awt/datatransfer/DataFlavor;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 7: aload 1
checkcast javax.swing.text.JTextComponent
aload 5
invokevirtual javax.swing.text.JTextComponent.replaceSelection:(Ljava/lang/String;)V
8: iconst_1
ireturn
end local 5 9: StackMap locals:
StackMap stack: java.awt.datatransfer.UnsupportedFlavorException
pop
goto 11
10: StackMap locals:
StackMap stack: java.io.IOException
pop
end local 4 end local 3 11: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/text/JTextComponent$DefaultTransferHandler;
0 12 1 comp Ljavax/swing/JComponent;
0 12 2 t Ljava/awt/datatransfer/Transferable;
2 11 3 flavor Ljava/awt/datatransfer/DataFlavor;
4 11 4 ic Ljava/awt/im/InputContext;
7 9 5 data Ljava/lang/String;
Exception table:
from to target type
6 8 9 Class java.awt.datatransfer.UnsupportedFlavorException
6 8 10 Class java.io.IOException
MethodParameters:
Name Flags
comp
t
public boolean canImport(javax.swing.JComponent, java.awt.datatransfer.DataFlavor[]);
descriptor: (Ljavax/swing/JComponent;[Ljava/awt/datatransfer/DataFlavor;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast javax.swing.text.JTextComponent
astore 3
start local 3 1: aload 3
invokevirtual javax.swing.text.JTextComponent.isEditable:()Z
ifeq 2
aload 3
invokevirtual javax.swing.text.JTextComponent.isEnabled:()Z
ifne 3
2: StackMap locals: javax.swing.text.JTextComponent
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual javax.swing.text.JTextComponent$DefaultTransferHandler.getFlavor:([Ljava/awt/datatransfer/DataFlavor;)Ljava/awt/datatransfer/DataFlavor;
ifnull 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/JTextComponent$DefaultTransferHandler;
0 5 1 comp Ljavax/swing/JComponent;
0 5 2 transferFlavors [Ljava/awt/datatransfer/DataFlavor;
1 5 3 c Ljavax/swing/text/JTextComponent;
MethodParameters:
Name Flags
comp
transferFlavors
public int getSourceActions(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/JTextComponent$DefaultTransferHandler;
0 1 1 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
private java.awt.datatransfer.DataFlavor getFlavor(java.awt.datatransfer.DataFlavor[]);
descriptor: ([Ljava/awt/datatransfer/DataFlavor;)Ljava/awt/datatransfer/DataFlavor;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnull 7
1: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: javax.swing.text.JTextComponent$DefaultTransferHandler java.awt.datatransfer.DataFlavor[] top int int java.awt.datatransfer.DataFlavor[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
getstatic java.awt.datatransfer.DataFlavor.stringFlavor:Ljava/awt/datatransfer/DataFlavor;
invokevirtual java.awt.datatransfer.DataFlavor.equals:(Ljava/awt/datatransfer/DataFlavor;)Z
ifeq 5
4: aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: StackMap locals: javax.swing.text.JTextComponent$DefaultTransferHandler java.awt.datatransfer.DataFlavor[]
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/text/JTextComponent$DefaultTransferHandler;
0 8 1 flavors [Ljava/awt/datatransfer/DataFlavor;
3 5 2 flavor Ljava/awt/datatransfer/DataFlavor;
MethodParameters:
Name Flags
flavors
}
SourceFile: "JTextComponent.java"
NestHost: javax.swing.text.JTextComponent
InnerClasses:
DefaultTransferHandler = javax.swing.text.JTextComponent$DefaultTransferHandler of javax.swing.text.JTextComponent