class javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable extends javax.swing.plaf.basic.BasicTransferable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable
super_class: javax.swing.plaf.basic.BasicTransferable
{
javax.swing.text.Position p0;
descriptor: Ljavax/swing/text/Position;
flags: (0x0000)
javax.swing.text.Position p1;
descriptor: Ljavax/swing/text/Position;
flags: (0x0000)
java.lang.String mimeType;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.lang.String richText;
descriptor: Ljava/lang/String;
flags: (0x0000)
javax.swing.text.JTextComponent c;
descriptor: Ljavax/swing/text/JTextComponent;
flags: (0x0000)
void <init>(javax.swing.text.JTextComponent, int, int);
descriptor: (Ljavax/swing/text/JTextComponent;II)V
flags: (0x0000)
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aconst_null
aconst_null
invokespecial javax.swing.plaf.basic.BasicTransferable.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 1
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.c:Ljavax/swing/text/JTextComponent;
2: aload 1
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 4
start local 4 3: aload 0
aload 4
iload 2
invokeinterface javax.swing.text.Document.createPosition:(I)Ljavax/swing/text/Position;
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
4: aload 0
aload 4
iload 3
invokeinterface javax.swing.text.Document.createPosition:(I)Ljavax/swing/text/Position;
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p1:Ljavax/swing/text/Position;
5: aload 0
aload 1
invokevirtual javax.swing.text.JTextComponent.getSelectedText:()Ljava/lang/String;
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.plainData:Ljava/lang/String;
6: aload 1
instanceof javax.swing.JEditorPane
ifeq 20
7: aload 1
checkcast javax.swing.JEditorPane
astore 5
start local 5 8: aload 0
aload 5
invokevirtual javax.swing.JEditorPane.getContentType:()Ljava/lang/String;
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.mimeType:Ljava/lang/String;
9: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.mimeType:Ljava/lang/String;
ldc "text/plain"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 11
10: return
11: StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable javax.swing.text.JTextComponent int int javax.swing.text.Document javax.swing.JEditorPane
StackMap stack:
new java.io.StringWriter
dup
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p1:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
isub
invokespecial java.io.StringWriter.<init>:(I)V
astore 6
start local 6 12: aload 5
invokevirtual javax.swing.JEditorPane.getEditorKit:()Ljavax/swing/text/EditorKit;
aload 6
aload 4
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p1:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
isub
invokevirtual javax.swing.text.EditorKit.write:(Ljava/io/Writer;Ljavax/swing/text/Document;II)V
13: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.mimeType:Ljava/lang/String;
ldc "text/html"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
14: aload 0
aload 6
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.htmlData:Ljava/lang/String;
15: goto 20
16: StackMap locals: java.io.StringWriter
StackMap stack:
aload 0
aload 6
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
putfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.richText:Ljava/lang/String;
end local 6 end local 5 17: goto 20
StackMap locals: javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable javax.swing.text.JTextComponent int int javax.swing.text.Document
StackMap stack: javax.swing.text.BadLocationException
18: pop
goto 20
19: StackMap locals:
StackMap stack: java.io.IOException
pop
20: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler$TextTransferable;
0 21 1 c Ljavax/swing/text/JTextComponent;
0 21 2 start I
0 21 3 end I
3 21 4 doc Ljavax/swing/text/Document;
8 17 5 ep Ljavax/swing/JEditorPane;
12 17 6 sw Ljava/io/StringWriter;
Exception table:
from to target type
3 10 18 Class javax.swing.text.BadLocationException
11 17 18 Class javax.swing.text.BadLocationException
3 10 19 Class java.io.IOException
11 17 19 Class java.io.IOException
MethodParameters:
Name Flags
c
start
end
void removeText();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
ifnull 5
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p1:Ljavax/swing/text/Position;
ifnull 5
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p1:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
if_icmpeq 5
1: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.c:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 1
start local 1 2: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p1:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.p0:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
isub
invokeinterface javax.swing.text.Document.remove:(II)V
end local 1 3: goto 5
StackMap locals:
StackMap stack: javax.swing.text.BadLocationException
4: pop
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler$TextTransferable;
2 3 1 doc Ljavax/swing/text/Document;
Exception table:
from to target type
1 3 4 Class javax.swing.text.BadLocationException
protected java.awt.datatransfer.DataFlavor[] getRicherFlavors();
descriptor: ()[Ljava/awt/datatransfer/DataFlavor;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.richText:Ljava/lang/String;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
iconst_3
anewarray java.awt.datatransfer.DataFlavor
astore 1
start local 1 3: aload 1
iconst_0
new java.awt.datatransfer.DataFlavor
dup
new java.lang.StringBuilder
dup
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.mimeType:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ";class=java.lang.String"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.awt.datatransfer.DataFlavor.<init>:(Ljava/lang/String;)V
aastore
4: aload 1
iconst_1
new java.awt.datatransfer.DataFlavor
dup
new java.lang.StringBuilder
dup
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.mimeType:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ";class=java.io.Reader"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.awt.datatransfer.DataFlavor.<init>:(Ljava/lang/String;)V
aastore
5: aload 1
iconst_2
new java.awt.datatransfer.DataFlavor
dup
new java.lang.StringBuilder
dup
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.mimeType:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ";class=java.io.InputStream;charset=unicode"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.awt.datatransfer.DataFlavor.<init>:(Ljava/lang/String;)V
aastore
6: aload 1
7: areturn
end local 1 8: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
9: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler$TextTransferable;
3 8 1 flavors [Ljava/awt/datatransfer/DataFlavor;
Exception table:
from to target type
2 7 8 Class java.lang.ClassNotFoundException
protected java.lang.Object getRicherData(java.awt.datatransfer.DataFlavor);
descriptor: (Ljava/awt/datatransfer/DataFlavor;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.richText:Ljava/lang/String;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
ldc Ljava/lang/String;
aload 1
invokevirtual java.awt.datatransfer.DataFlavor.getRepresentationClass:()Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.richText:Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
ldc Ljava/io/Reader;
aload 1
invokevirtual java.awt.datatransfer.DataFlavor.getRepresentationClass:()Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
5: new java.io.StringReader
dup
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.richText:Ljava/lang/String;
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
areturn
6: StackMap locals:
StackMap stack:
ldc Ljava/io/InputStream;
aload 1
invokevirtual java.awt.datatransfer.DataFlavor.getRepresentationClass:()Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 8
7: new java.io.StringBufferInputStream
dup
aload 0
getfield javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.richText:Ljava/lang/String;
invokespecial java.io.StringBufferInputStream.<init>:(Ljava/lang/String;)V
areturn
8: StackMap locals:
StackMap stack:
new java.awt.datatransfer.UnsupportedFlavorException
dup
aload 1
invokespecial java.awt.datatransfer.UnsupportedFlavorException.<init>:(Ljava/awt/datatransfer/DataFlavor;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/plaf/basic/BasicTextUI$TextTransferHandler$TextTransferable;
0 9 1 flavor Ljava/awt/datatransfer/DataFlavor;
Exceptions:
throws java.awt.datatransfer.UnsupportedFlavorException
MethodParameters:
Name Flags
flavor
}
SourceFile: "BasicTextUI.java"
NestHost: javax.swing.plaf.basic.BasicTextUI
InnerClasses:
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