class javax.swing.plaf.basic.BasicTextUI$TextTransferHandler extends javax.swing.TransferHandler implements javax.swing.plaf.UIResource
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler
super_class: javax.swing.TransferHandler
{
private javax.swing.text.JTextComponent exportComp;
descriptor: Ljavax/swing/text/JTextComponent;
flags: (0x0002) ACC_PRIVATE
private boolean shouldRemove;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int p0;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int p1;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean modeBetween;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean isDrop;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int dropAction;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private javax.swing.text.Position$Bias dropBias;
descriptor: Ljavax/swing/text/Position$Bias;
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.TransferHandler.<init>:()V
1: aload 0
iconst_0
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.modeBetween:Z
2: aload 0
iconst_0
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.isDrop:Z
3: aload 0
iconst_2
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropAction:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
protected java.awt.datatransfer.DataFlavor getImportFlavor(java.awt.datatransfer.DataFlavor[], javax.swing.text.JTextComponent);
descriptor: ([Ljava/awt/datatransfer/DataFlavor;Ljavax/swing/text/JTextComponent;)Ljava/awt/datatransfer/DataFlavor;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: aconst_null
astore 5
start local 5 3: aload 2
instanceof javax.swing.JEditorPane
ifeq 27
4: iconst_0
istore 6
start local 6 5: goto 19
6: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.awt.datatransfer.DataFlavor[] javax.swing.text.JTextComponent java.awt.datatransfer.DataFlavor java.awt.datatransfer.DataFlavor java.awt.datatransfer.DataFlavor int
StackMap stack:
aload 1
iload 6
aaload
invokevirtual java.awt.datatransfer.DataFlavor.getMimeType:()Ljava/lang/String;
astore 7
start local 7 7: aload 7
aload 2
checkcast javax.swing.JEditorPane
invokevirtual javax.swing.JEditorPane.getEditorKit:()Ljavax/swing/text/EditorKit;
invokevirtual javax.swing.text.EditorKit.getContentType:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
8: aload 1
iload 6
aaload
areturn
9: StackMap locals: java.lang.String
StackMap stack:
aload 3
ifnonnull 12
aload 7
ldc "text/plain"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 12
10: aload 1
iload 6
aaload
astore 3
11: goto 18
StackMap locals:
StackMap stack:
12: aload 4
ifnonnull 16
aload 7
ldc "application/x-java-jvm-local-objectref"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
13: aload 1
iload 6
aaload
invokevirtual java.awt.datatransfer.DataFlavor.getRepresentationClass:()Ljava/lang/Class;
ldc Ljava/lang/String;
if_acmpne 16
14: aload 1
iload 6
aaload
astore 4
15: goto 18
StackMap locals:
StackMap stack:
16: aload 5
ifnonnull 18
aload 1
iload 6
aaload
getstatic java.awt.datatransfer.DataFlavor.stringFlavor:Ljava/awt/datatransfer/DataFlavor;
invokevirtual java.awt.datatransfer.DataFlavor.equals:(Ljava/awt/datatransfer/DataFlavor;)Z
ifeq 18
17: aload 1
iload 6
aaload
astore 5
end local 7 18: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
19: iload 6
aload 1
arraylength
if_icmplt 6
end local 6 20: aload 3
ifnull 22
21: aload 3
areturn
22: StackMap locals:
StackMap stack:
aload 4
ifnull 24
23: aload 4
areturn
24: StackMap locals:
StackMap stack:
aload 5
ifnull 26
25: aload 5
areturn
26: StackMap locals:
StackMap stack:
aconst_null
areturn
27: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 28: goto 39
29: StackMap locals: int
StackMap stack:
aload 1
iload 6
aaload
invokevirtual java.awt.datatransfer.DataFlavor.getMimeType:()Ljava/lang/String;
astore 7
start local 7 30: aload 7
ldc "text/plain"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 32
31: aload 1
iload 6
aaload
areturn
32: StackMap locals: java.lang.String
StackMap stack:
aload 4
ifnonnull 36
aload 7
ldc "application/x-java-jvm-local-objectref"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 36
33: aload 1
iload 6
aaload
invokevirtual java.awt.datatransfer.DataFlavor.getRepresentationClass:()Ljava/lang/Class;
ldc Ljava/lang/String;
if_acmpne 36
34: aload 1
iload 6
aaload
astore 4
35: goto 38
StackMap locals:
StackMap stack:
36: aload 5
ifnonnull 38
aload 1
iload 6
aaload
getstatic java.awt.datatransfer.DataFlavor.stringFlavor:Ljava/awt/datatransfer/DataFlavor;
invokevirtual java.awt.datatransfer.DataFlavor.equals:(Ljava/awt/datatransfer/DataFlavor;)Z
ifeq 38
37: aload 1
iload 6
aaload
astore 5
end local 7 38: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
39: iload 6
aload 1
arraylength
if_icmplt 29
end local 6 40: aload 4
ifnull 42
41: aload 4
areturn
42: StackMap locals:
StackMap stack:
aload 5
ifnull 44
43: aload 5
areturn
44: StackMap locals:
StackMap stack:
aconst_null
areturn
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 45 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
0 45 1 flavors [Ljava/awt/datatransfer/DataFlavor;
0 45 2 c Ljavax/swing/text/JTextComponent;
1 45 3 plainFlavor Ljava/awt/datatransfer/DataFlavor;
2 45 4 refFlavor Ljava/awt/datatransfer/DataFlavor;
3 45 5 stringFlavor Ljava/awt/datatransfer/DataFlavor;
5 20 6 i I
7 18 7 mime Ljava/lang/String;
28 40 6 i I
30 38 7 mime Ljava/lang/String;
MethodParameters:
Name Flags
flavors
c
protected void handleReaderImport(java.io.Reader, javax.swing.text.JTextComponent, boolean);
descriptor: (Ljava/io/Reader;Ljavax/swing/text/JTextComponent;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifeq 10
1: aload 2
invokevirtual javax.swing.text.JTextComponent.getSelectionStart:()I
istore 4
start local 4 2: aload 2
invokevirtual javax.swing.text.JTextComponent.getSelectionEnd:()I
istore 5
start local 5 3: iload 5
iload 4
isub
istore 6
start local 6 4: aload 2
invokevirtual javax.swing.text.JTextComponent.getUI:()Ljavax/swing/plaf/TextUI;
aload 2
invokevirtual javax.swing.plaf.TextUI.getEditorKit:(Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/EditorKit;
astore 7
start local 7 5: aload 2
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 8
start local 8 6: iload 6
ifle 8
7: aload 8
iload 4
iload 6
invokeinterface javax.swing.text.Document.remove:(II)V
8: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int int int int javax.swing.text.EditorKit javax.swing.text.Document
StackMap stack:
aload 7
aload 1
aload 8
iload 4
invokevirtual javax.swing.text.EditorKit.read:(Ljava/io/Reader;Ljavax/swing/text/Document;I)V
end local 8 end local 7 end local 6 end local 5 end local 4 9: goto 55
10: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int
StackMap stack:
sipush 1024
newarray 5
astore 4
start local 4 11: iconst_0
istore 6
start local 6 12: aconst_null
astore 8
start local 8 13: goto 48
start local 5 14: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int char[] int int top java.lang.StringBuffer
StackMap stack:
aload 8
ifnonnull 16
15: new java.lang.StringBuffer
dup
iload 5
invokespecial java.lang.StringBuffer.<init>:(I)V
astore 8
16: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 17: iconst_0
istore 9
start local 9 18: goto 41
19: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int char[] int int int java.lang.StringBuffer int
StackMap stack:
aload 4
iload 9
caload
tableswitch { // 10 - 13
10: 28
11: 34
12: 34
13: 20
default: 34
}
20: StackMap locals:
StackMap stack:
iload 6
ifeq 26
21: iload 9
ifne 24
22: aload 8
bipush 10
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
23: goto 40
24: StackMap locals:
StackMap stack:
aload 4
iload 9
iconst_1
isub
bipush 10
castore
25: goto 40
26: StackMap locals:
StackMap stack:
iconst_1
istore 6
27: goto 40
28: StackMap locals:
StackMap stack:
iload 6
ifeq 40
29: iload 9
iload 7
iconst_1
iadd
if_icmple 31
30: aload 8
aload 4
iload 7
iload 9
iload 7
isub
iconst_1
isub
invokevirtual java.lang.StringBuffer.append:([CII)Ljava/lang/StringBuffer;
pop
31: StackMap locals:
StackMap stack:
iconst_0
istore 6
32: iload 9
istore 7
33: goto 40
34: StackMap locals:
StackMap stack:
iload 6
ifeq 40
35: iload 9
ifne 38
36: aload 8
bipush 10
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
37: goto 39
38: StackMap locals:
StackMap stack:
aload 4
iload 9
iconst_1
isub
bipush 10
castore
39: StackMap locals:
StackMap stack:
iconst_0
istore 6
40: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
41: iload 9
iload 5
if_icmplt 19
end local 9 42: iload 7
iload 5
if_icmpge 48
43: iload 6
ifeq 47
44: iload 7
iload 5
iconst_1
isub
if_icmpge 48
45: aload 8
aload 4
iload 7
iload 5
iload 7
isub
iconst_1
isub
invokevirtual java.lang.StringBuffer.append:([CII)Ljava/lang/StringBuffer;
pop
46: goto 48
47: StackMap locals:
StackMap stack:
aload 8
aload 4
iload 7
iload 5
iload 7
isub
invokevirtual java.lang.StringBuffer.append:([CII)Ljava/lang/StringBuffer;
pop
end local 7 end local 5 48: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int char[] top int top java.lang.StringBuffer
StackMap stack:
aload 1
aload 4
iconst_0
aload 4
arraylength
invokevirtual java.io.Reader.read:([CII)I
dup
istore 5
start local 5 49: iconst_m1
if_icmpne 14
50: iload 6
ifeq 52
51: aload 8
bipush 10
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
52: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int char[] int int top java.lang.StringBuffer
StackMap stack:
aload 2
aload 8
ifnull 53
aload 8
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
goto 54
StackMap locals:
StackMap stack: javax.swing.text.JTextComponent
53: ldc ""
StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int char[] int int top java.lang.StringBuffer
StackMap stack: javax.swing.text.JTextComponent java.lang.String
54: invokevirtual javax.swing.text.JTextComponent.replaceSelection:(Ljava/lang/String;)V
end local 8 end local 6 end local 5 end local 4 55: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler java.io.Reader javax.swing.text.JTextComponent int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
0 56 1 in Ljava/io/Reader;
0 56 2 c Ljavax/swing/text/JTextComponent;
0 56 3 useRead Z
2 9 4 startPosition I
3 9 5 endPosition I
4 9 6 length I
5 9 7 kit Ljavax/swing/text/EditorKit;
6 9 8 doc Ljavax/swing/text/Document;
11 55 4 buff [C
14 48 5 nch I
49 55 5 nch I
12 55 6 lastWasCR Z
17 48 7 last I
13 55 8 sbuff Ljava/lang/StringBuffer;
18 42 9 counter I
Exceptions:
throws javax.swing.text.BadLocationException, java.io.IOException
MethodParameters:
Name Flags
in
c
useRead
public int getSourceActions(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.swing.JPasswordField
ifeq 5
1: aload 1
ldc "JPasswordField.cutCopyAllowed"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
2: getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
3: if_acmpeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 1
checkcast javax.swing.text.JTextComponent
invokevirtual javax.swing.text.JTextComponent.isEditable:()Z
ifeq 6
iconst_3
goto 7
StackMap locals:
StackMap stack:
6: iconst_1
StackMap locals:
StackMap stack: int
7: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
0 8 1 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljava/awt/datatransfer/Transferable;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
checkcast javax.swing.text.JTextComponent
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.exportComp:Ljavax/swing/text/JTextComponent;
1: aload 0
iconst_1
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.shouldRemove:Z
2: aload 0
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.exportComp:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getSelectionStart:()I
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p0:I
3: aload 0
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.exportComp:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getSelectionEnd:()I
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p1:I
4: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p0:I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p1:I
if_icmpeq 5
new javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable
dup
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.exportComp:Ljavax/swing/text/JTextComponent;
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p0:I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p1:I
invokespecial javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.<init>:(Ljavax/swing/text/JTextComponent;II)V
goto 6
StackMap locals:
StackMap stack:
5: aconst_null
StackMap locals:
StackMap stack: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable
6: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
0 7 1 comp Ljavax/swing/JComponent;
MethodParameters:
Name Flags
comp
protected void exportDone(javax.swing.JComponent, java.awt.datatransfer.Transferable, int);
descriptor: (Ljavax/swing/JComponent;Ljava/awt/datatransfer/Transferable;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.shouldRemove:Z
ifeq 3
iload 3
iconst_2
if_icmpne 3
1: aload 2
checkcast javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable
astore 4
start local 4 2: aload 4
invokevirtual javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.removeText:()V
end local 4 3: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.exportComp:Ljavax/swing/text/JTextComponent;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
0 5 1 source Ljavax/swing/JComponent;
0 5 2 data Ljava/awt/datatransfer/Transferable;
0 5 3 action I
2 3 4 t Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler$TextTransferable;
MethodParameters:
Name Flags
source
data
action
public boolean importData(javax.swing.TransferHandler$TransferSupport);
descriptor: (Ljavax/swing/TransferHandler$TransferSupport;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.TransferHandler$TransferSupport.isDrop:()Z
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.isDrop:Z
1: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.isDrop:Z
ifeq 8
2: aload 0
3: aload 1
invokevirtual javax.swing.TransferHandler$TransferSupport.getComponent:()Ljava/awt/Component;
checkcast javax.swing.text.JTextComponent
invokevirtual javax.swing.text.JTextComponent.getDropMode:()Ljavax/swing/DropMode;
getstatic javax.swing.DropMode.INSERT:Ljavax/swing/DropMode;
if_acmpne 4
iconst_1
goto 5
StackMap locals:
StackMap stack: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler
4: iconst_0
5: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler javax.swing.TransferHandler$TransferSupport
StackMap stack: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler int
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.modeBetween:Z
6: aload 0
aload 1
invokevirtual javax.swing.TransferHandler$TransferSupport.getDropLocation:()Ljavax/swing/TransferHandler$DropLocation;
checkcast javax.swing.text.JTextComponent$DropLocation
invokevirtual javax.swing.text.JTextComponent$DropLocation.getBias:()Ljavax/swing/text/Position$Bias;
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropBias:Ljavax/swing/text/Position$Bias;
7: aload 0
aload 1
invokevirtual javax.swing.TransferHandler$TransferSupport.getDropAction:()I
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropAction:I
8: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.swing.TransferHandler.importData:(Ljavax/swing/TransferHandler$TransferSupport;)Z
istore 3
9: aload 0
iconst_0
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.isDrop:Z
10: aload 0
iconst_0
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.modeBetween:Z
11: aload 0
aconst_null
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropBias:Ljavax/swing/text/Position$Bias;
12: aload 0
iconst_2
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropAction:I
13: iload 3
ireturn
14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
15: aload 0
iconst_0
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.isDrop:Z
16: aload 0
iconst_0
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.modeBetween:Z
17: aload 0
aconst_null
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropBias:Ljavax/swing/text/Position$Bias;
18: aload 0
iconst_2
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropAction:I
19: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
0 20 1 support Ljavax/swing/TransferHandler$TransferSupport;
Exception table:
from to target type
8 9 14 any
MethodParameters:
Name Flags
support
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=4, locals=13, 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 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.modeBetween:Z
ifeq 3
2: aload 3
invokevirtual javax.swing.text.JTextComponent.getDropLocation:()Ljavax/swing/text/JTextComponent$DropLocation;
invokevirtual javax.swing.text.JTextComponent$DropLocation.getIndex:()I
goto 4
StackMap locals: javax.swing.text.JTextComponent
StackMap stack:
3: aload 3
invokevirtual javax.swing.text.JTextComponent.getCaretPosition:()I
4: StackMap locals:
StackMap stack: int
istore 4
start local 4 5: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropAction:I
iconst_2
if_icmpne 8
aload 3
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.exportComp:Ljavax/swing/text/JTextComponent;
if_acmpne 8
iload 4
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p0:I
if_icmplt 8
iload 4
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.p1:I
if_icmpgt 8
6: aload 0
iconst_0
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.shouldRemove:Z
7: iconst_1
ireturn
8: StackMap locals: int
StackMap stack:
iconst_0
istore 5
start local 5 9: aload 0
aload 2
invokeinterface java.awt.datatransfer.Transferable.getTransferDataFlavors:()[Ljava/awt/datatransfer/DataFlavor;
aload 3
invokevirtual javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.getImportFlavor:([Ljava/awt/datatransfer/DataFlavor;Ljavax/swing/text/JTextComponent;)Ljava/awt/datatransfer/DataFlavor;
astore 6
start local 6 10: aload 6
ifnull 43
11: iconst_0
istore 7
start local 7 12: aload 1
instanceof javax.swing.JEditorPane
ifeq 17
13: aload 1
checkcast javax.swing.JEditorPane
astore 8
start local 8 14: aload 8
invokevirtual javax.swing.JEditorPane.getContentType:()Ljava/lang/String;
ldc "text/plain"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 17
15: aload 6
invokevirtual java.awt.datatransfer.DataFlavor.getMimeType:()Ljava/lang/String;
aload 8
invokevirtual javax.swing.JEditorPane.getContentType:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
16: iconst_1
istore 7
end local 8 17: StackMap locals: int java.awt.datatransfer.DataFlavor int
StackMap stack:
aload 3
invokevirtual javax.swing.text.JTextComponent.getInputContext:()Ljava/awt/im/InputContext;
astore 8
start local 8 18: aload 8
ifnull 20
19: aload 8
invokevirtual java.awt.im.InputContext.endComposition:()V
20: StackMap locals: java.awt.im.InputContext
StackMap stack:
aload 6
aload 2
invokevirtual java.awt.datatransfer.DataFlavor.getReaderForText:(Ljava/awt/datatransfer/Transferable;)Ljava/io/Reader;
astore 9
start local 9 21: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.modeBetween:Z
ifeq 27
22: aload 3
invokevirtual javax.swing.text.JTextComponent.getCaret:()Ljavax/swing/text/Caret;
astore 10
start local 10 23: aload 10
instanceof javax.swing.text.DefaultCaret
ifeq 26
24: aload 10
checkcast javax.swing.text.DefaultCaret
iload 4
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropBias:Ljavax/swing/text/Position$Bias;
invokevirtual javax.swing.text.DefaultCaret.setDot:(ILjavax/swing/text/Position$Bias;)V
25: goto 27
26: StackMap locals: java.io.Reader javax.swing.text.Caret
StackMap stack:
aload 3
iload 4
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
end local 10 27: StackMap locals:
StackMap stack:
aload 0
aload 9
aload 3
iload 7
invokevirtual javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.handleReaderImport:(Ljava/io/Reader;Ljavax/swing/text/JTextComponent;Z)V
28: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.isDrop:Z
ifeq 38
29: aload 3
invokevirtual javax.swing.text.JTextComponent.requestFocus:()V
30: aload 3
invokevirtual javax.swing.text.JTextComponent.getCaret:()Ljavax/swing/text/Caret;
astore 10
start local 10 31: aload 10
instanceof javax.swing.text.DefaultCaret
ifeq 37
32: aload 10
invokeinterface javax.swing.text.Caret.getDot:()I
istore 11
start local 11 33: aload 10
checkcast javax.swing.text.DefaultCaret
invokevirtual javax.swing.text.DefaultCaret.getDotBias:()Ljavax/swing/text/Position$Bias;
astore 12
start local 12 34: aload 10
checkcast javax.swing.text.DefaultCaret
iload 4
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.dropBias:Ljavax/swing/text/Position$Bias;
invokevirtual javax.swing.text.DefaultCaret.setDot:(ILjavax/swing/text/Position$Bias;)V
35: aload 10
checkcast javax.swing.text.DefaultCaret
iload 11
aload 12
invokevirtual javax.swing.text.DefaultCaret.moveDot:(ILjavax/swing/text/Position$Bias;)V
end local 12 end local 11 36: goto 38
37: StackMap locals: javax.swing.text.Caret
StackMap stack:
aload 3
iload 4
aload 3
invokevirtual javax.swing.text.JTextComponent.getCaretPosition:()I
invokevirtual javax.swing.text.JTextComponent.select:(II)V
end local 10 38: StackMap locals:
StackMap stack:
iconst_1
istore 5
end local 9 end local 8 end local 7 39: goto 43
StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler javax.swing.JComponent java.awt.datatransfer.Transferable javax.swing.text.JTextComponent int int java.awt.datatransfer.DataFlavor
StackMap stack: java.awt.datatransfer.UnsupportedFlavorException
40: pop
goto 43
41: StackMap locals:
StackMap stack: javax.swing.text.BadLocationException
pop
goto 43
42: StackMap locals:
StackMap stack: java.io.IOException
pop
43: StackMap locals:
StackMap stack:
iload 5
ireturn
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 44 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler;
0 44 1 comp Ljavax/swing/JComponent;
0 44 2 t Ljava/awt/datatransfer/Transferable;
1 44 3 c Ljavax/swing/text/JTextComponent;
5 44 4 pos I
9 44 5 imported Z
10 44 6 importFlavor Ljava/awt/datatransfer/DataFlavor;
12 39 7 useRead Z
14 17 8 ep Ljavax/swing/JEditorPane;
18 39 8 ic Ljava/awt/im/InputContext;
21 39 9 r Ljava/io/Reader;
23 27 10 caret Ljavax/swing/text/Caret;
31 38 10 caret Ljavax/swing/text/Caret;
33 36 11 newPos I
34 36 12 newBias Ljavax/swing/text/Position$Bias;
Exception table:
from to target type
11 39 40 Class java.awt.datatransfer.UnsupportedFlavorException
11 39 41 Class javax.swing.text.BadLocationException
11 39 42 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=3, 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
aload 3
invokevirtual javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.getImportFlavor:([Ljava/awt/datatransfer/DataFlavor;Ljavax/swing/text/JTextComponent;)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/plaf/basic/BasicTextUI$TextTransferHandler;
0 5 1 comp Ljavax/swing/JComponent;
0 5 2 flavors [Ljava/awt/datatransfer/DataFlavor;
1 5 3 c Ljavax/swing/text/JTextComponent;
MethodParameters:
Name Flags
comp
flavors
}
SourceFile: "BasicTextUI.java"
NestHost: javax.swing.plaf.basic.BasicTextUI
InnerClasses:
public DropLocation = javax.swing.TransferHandler$DropLocation of javax.swing.TransferHandler
public final TransferSupport = javax.swing.TransferHandler$TransferSupport of javax.swing.TransferHandler
TextTransferHandler = javax.swing.plaf.basic.BasicTextUI$TextTransferHandler of javax.swing.plaf.basic.BasicTextUI
TextTransferable = javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable of javax.swing.plaf.basic.BasicTextUI$TextTransferHandler
public final DropLocation = javax.swing.text.JTextComponent$DropLocation of javax.swing.text.JTextComponent
public final Bias = javax.swing.text.Position$Bias of javax.swing.text.Position