public class sun.swing.text.TextComponentPrintable implements sun.swing.text.CountingPrintable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.swing.text.TextComponentPrintable
super_class: java.lang.Object
{
private static final int LIST_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private boolean isLayouted;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final javax.swing.text.JTextComponent textComponentToPrint;
descriptor: Ljavax/swing/text/JTextComponent;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicReference<java.awt.font.FontRenderContext> frc;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Ljava/awt/font/FontRenderContext;>;
private final javax.swing.text.JTextComponent printShell;
descriptor: Ljavax/swing/text/JTextComponent;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.text.MessageFormat ;
descriptor: Ljava/text/MessageFormat;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.text.MessageFormat ;
descriptor: Ljava/text/MessageFormat;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final float ;
descriptor: F
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 18.0
private static final float ;
descriptor: F
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 12.0
private final java.awt.Font ;
descriptor: Ljava/awt/Font;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.awt.Font ;
descriptor: Ljava/awt/Font;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<sun.swing.text.TextComponentPrintable$IntegerSegment> rowsMetrics;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lsun/swing/text/TextComponentPrintable$IntegerSegment;>;
private final java.util.List<sun.swing.text.TextComponentPrintable$IntegerSegment> pagesMetrics;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lsun/swing/text/TextComponentPrintable$IntegerSegment;>;
private boolean needReadLock;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/swing/text/TextComponentPrintable;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.swing.text.TextComponentPrintable.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public static java.awt.print.Printable getPrintable(javax.swing.text.JTextComponent, java.text.MessageFormat, java.text.MessageFormat);
descriptor: (Ljavax/swing/text/JTextComponent;Ljava/text/MessageFormat;Ljava/text/MessageFormat;)Ljava/awt/print/Printable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
instanceof javax.swing.JEditorPane
ifeq 12
1: aload 0
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
invokestatic sun.swing.text.TextComponentPrintable.isFrameSetDocument:(Ljavax/swing/text/Document;)Z
ifeq 12
2: aload 0
checkcast javax.swing.JEditorPane
invokestatic sun.swing.text.TextComponentPrintable.getFrames:(Ljavax/swing/JEditorPane;)Ljava/util/List;
astore 3
start local 3 3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
4: astore 4
start local 4 5: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 10
StackMap locals: javax.swing.text.JTextComponent java.text.MessageFormat java.text.MessageFormat java.util.List java.util.List top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.swing.JEditorPane
astore 5
start local 5 7: aload 4
8: aload 5
aload 1
aload 2
invokestatic sun.swing.text.TextComponentPrintable.getPrintable:(Ljavax/swing/text/JTextComponent;Ljava/text/MessageFormat;Ljava/text/MessageFormat;)Ljava/awt/print/Printable;
9: checkcast sun.swing.text.CountingPrintable
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 10: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
11: new sun.swing.text.CompoundPrintable
dup
aload 4
invokespecial sun.swing.text.CompoundPrintable.<init>:(Ljava/util/List;)V
areturn
end local 4 end local 3 12: StackMap locals: javax.swing.text.JTextComponent java.text.MessageFormat java.text.MessageFormat
StackMap stack:
new sun.swing.text.TextComponentPrintable
dup
aload 0
13: aload 1
aload 2
14: invokespecial sun.swing.text.TextComponentPrintable.<init>:(Ljavax/swing/text/JTextComponent;Ljava/text/MessageFormat;Ljava/text/MessageFormat;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 textComponent Ljavax/swing/text/JTextComponent;
0 15 1 headerFormat Ljava/text/MessageFormat;
0 15 2 footerFormat Ljava/text/MessageFormat;
3 12 3 frames Ljava/util/List<Ljavax/swing/JEditorPane;>;
5 12 4 printables Ljava/util/List<Lsun/swing/text/CountingPrintable;>;
7 10 5 frame Ljavax/swing/JEditorPane;
MethodParameters:
Name Flags
textComponent final
headerFormat final
footerFormat final
private static boolean isFrameSetDocument(javax.swing.text.Document);
descriptor: (Ljavax/swing/text/Document;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
instanceof javax.swing.text.html.HTMLDocument
ifeq 5
2: aload 0
checkcast javax.swing.text.html.HTMLDocument
astore 2
start local 2 3: aload 2
getstatic javax.swing.text.html.HTML$Tag.FRAME:Ljavax/swing/text/html/HTML$Tag;
invokevirtual javax.swing.text.html.HTMLDocument.getIterator:(Ljavax/swing/text/html/HTML$Tag;)Ljavax/swing/text/html/HTMLDocument$Iterator;
invokevirtual javax.swing.text.html.HTMLDocument$Iterator.isValid:()Z
ifeq 5
4: iconst_1
istore 1
end local 2 5: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 document Ljavax/swing/text/Document;
1 6 1 ret Z
3 5 2 htmlDocument Ljavax/swing/text/html/HTMLDocument;
MethodParameters:
Name Flags
document final
private static java.util.List<javax.swing.JEditorPane> getFrames(javax.swing.JEditorPane);
descriptor: (Ljavax/swing/JEditorPane;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
invokestatic sun.swing.text.TextComponentPrintable.getFrames:(Ljava/awt/Container;Ljava/util/List;)V
2: aload 1
invokeinterface java.util.List.size:()I
ifne 5
3: aload 0
invokestatic sun.swing.text.TextComponentPrintable.createFrames:(Ljavax/swing/JEditorPane;)V
4: aload 0
aload 1
invokestatic sun.swing.text.TextComponentPrintable.getFrames:(Ljava/awt/Container;Ljava/util/List;)V
5: StackMap locals: java.util.List
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 editor Ljavax/swing/JEditorPane;
1 6 1 list Ljava/util/List<Ljavax/swing/JEditorPane;>;
Signature: (Ljavax/swing/JEditorPane;)Ljava/util/List<Ljavax/swing/JEditorPane;>;
MethodParameters:
Name Flags
editor final
private static void getFrames(java.awt.Container, java.util.List<javax.swing.JEditorPane>);
descriptor: (Ljava/awt/Container;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.Container.getComponents:()[Ljava/awt/Component;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: java.awt.Container java.util.List top int int java.awt.Component[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
instanceof sun.swing.text.html.FrameEditorPaneTag
ifeq 6
3: aload 2
instanceof javax.swing.JEditorPane
ifeq 6
4: aload 1
aload 2
checkcast javax.swing.JEditorPane
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: goto 8
6: StackMap locals: java.awt.Container java.util.List java.awt.Component int int java.awt.Component[]
StackMap stack:
aload 2
instanceof java.awt.Container
ifeq 8
7: aload 2
checkcast java.awt.Container
aload 1
invokestatic sun.swing.text.TextComponentPrintable.getFrames:(Ljava/awt/Container;Ljava/util/List;)V
end local 2 8: StackMap locals: java.awt.Container java.util.List top int int java.awt.Component[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 1
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 container Ljava/awt/Container;
0 11 1 list Ljava/util/List<Ljavax/swing/JEditorPane;>;
2 8 2 c Ljava/awt/Component;
Signature: (Ljava/awt/Container;Ljava/util/List<Ljavax/swing/JEditorPane;>;)V
MethodParameters:
Name Flags
container final
list
private static void createFrames(javax.swing.JEditorPane);
descriptor: (Ljavax/swing/JEditorPane;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new sun.swing.text.TextComponentPrintable$1
dup
aload 0
invokespecial sun.swing.text.TextComponentPrintable$1.<init>:(Ljavax/swing/JEditorPane;)V
1: astore 1
start local 1 2: invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifeq 5
3: aload 1
invokeinterface java.lang.Runnable.run:()V
4: goto 11
5: StackMap locals: java.lang.Runnable
StackMap stack:
aload 1
invokestatic javax.swing.SwingUtilities.invokeAndWait:(Ljava/lang/Runnable;)V
6: goto 11
StackMap locals:
StackMap stack: java.lang.Exception
7: astore 2
start local 2 8: aload 2
instanceof java.lang.RuntimeException
ifeq 10
9: aload 2
checkcast java.lang.RuntimeException
athrow
10: StackMap locals: java.lang.Exception
StackMap stack:
new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 editor Ljavax/swing/JEditorPane;
2 12 1 doCreateFrames Ljava/lang/Runnable;
8 11 2 e Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.lang.Exception
MethodParameters:
Name Flags
editor final
private void <init>(javax.swing.text.JTextComponent, java.text.MessageFormat, java.text.MessageFormat);
descriptor: (Ljavax/swing/text/JTextComponent;Ljava/text/MessageFormat;Ljava/text/MessageFormat;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield sun.swing.text.TextComponentPrintable.isLayouted:Z
2: aload 0
3: new java.util.concurrent.atomic.AtomicReference
dup
aconst_null
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:(Ljava/lang/Object;)V
putfield sun.swing.text.TextComponentPrintable.frc:Ljava/util/concurrent/atomic/AtomicReference;
4: aload 0
iconst_0
putfield sun.swing.text.TextComponentPrintable.needReadLock:Z
5: aload 0
aload 1
putfield sun.swing.text.TextComponentPrintable.textComponentToPrint:Ljavax/swing/text/JTextComponent;
6: aload 0
aload 2
putfield sun.swing.text.TextComponentPrintable.headerFormat:Ljava/text/MessageFormat;
7: aload 0
aload 3
putfield sun.swing.text.TextComponentPrintable.footerFormat:Ljava/text/MessageFormat;
8: aload 0
aload 1
invokevirtual javax.swing.text.JTextComponent.getFont:()Ljava/awt/Font;
iconst_1
9: ldc 18.0
10: invokevirtual java.awt.Font.deriveFont:(IF)Ljava/awt/Font;
putfield sun.swing.text.TextComponentPrintable.headerFont:Ljava/awt/Font;
11: aload 0
aload 1
invokevirtual javax.swing.text.JTextComponent.getFont:()Ljava/awt/Font;
iconst_0
12: ldc 12.0
13: invokevirtual java.awt.Font.deriveFont:(IF)Ljava/awt/Font;
putfield sun.swing.text.TextComponentPrintable.footerFont:Ljava/awt/Font;
14: aload 0
15: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
invokestatic java.util.Collections.synchronizedList:(Ljava/util/List;)Ljava/util/List;
16: putfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
17: aload 0
new java.util.ArrayList
dup
sipush 1000
invokespecial java.util.ArrayList.<init>:(I)V
putfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
18: aload 0
aload 0
aload 1
invokevirtual sun.swing.text.TextComponentPrintable.createPrintShell:(Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/JTextComponent;
putfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
19: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/swing/text/TextComponentPrintable;
0 20 1 textComponent Ljavax/swing/text/JTextComponent;
0 20 2 headerFormat Ljava/text/MessageFormat;
0 20 3 footerFormat Ljava/text/MessageFormat;
MethodParameters:
Name Flags
textComponent
headerFormat
footerFormat
private javax.swing.text.JTextComponent createPrintShell(javax.swing.text.JTextComponent);
descriptor: (Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/JTextComponent;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifeq 2
1: aload 0
aload 1
invokevirtual sun.swing.text.TextComponentPrintable.createPrintShellOnEDT:(Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/JTextComponent;
areturn
2: StackMap locals:
StackMap stack:
new java.util.concurrent.FutureTask
dup
3: new sun.swing.text.TextComponentPrintable$2
dup
aload 0
aload 1
invokespecial sun.swing.text.TextComponentPrintable$2.<init>:(Lsun/swing/text/TextComponentPrintable;Ljavax/swing/text/JTextComponent;)V
4: invokespecial java.util.concurrent.FutureTask.<init>:(Ljava/util/concurrent/Callable;)V
5: astore 2
start local 2 6: aload 2
invokestatic javax.swing.SwingUtilities.invokeLater:(Ljava/lang/Runnable;)V
7: aload 2
invokevirtual java.util.concurrent.FutureTask.get:()Ljava/lang/Object;
checkcast javax.swing.text.JTextComponent
8: areturn
9: StackMap locals: sun.swing.text.TextComponentPrintable javax.swing.text.JTextComponent java.util.concurrent.FutureTask
StackMap stack: java.lang.InterruptedException
astore 3
start local 3 10: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 11: StackMap locals:
StackMap stack: java.util.concurrent.ExecutionException
astore 3
start local 3 12: aload 3
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
astore 4
start local 4 13: aload 4
instanceof java.lang.Error
ifeq 15
14: aload 4
checkcast java.lang.Error
athrow
15: StackMap locals: java.util.concurrent.ExecutionException java.lang.Throwable
StackMap stack:
aload 4
instanceof java.lang.RuntimeException
ifeq 17
16: aload 4
checkcast java.lang.RuntimeException
athrow
17: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
aload 4
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/swing/text/TextComponentPrintable;
0 18 1 textComponent Ljavax/swing/text/JTextComponent;
6 18 2 futureCreateShell Ljava/util/concurrent/FutureTask<Ljavax/swing/text/JTextComponent;>;
10 11 3 e Ljava/lang/InterruptedException;
12 18 3 e Ljava/util/concurrent/ExecutionException;
13 18 4 cause Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.InterruptedException
7 8 11 Class java.util.concurrent.ExecutionException
MethodParameters:
Name Flags
textComponent final
private javax.swing.text.JTextComponent createPrintShellOnEDT(javax.swing.text.JTextComponent);
descriptor: (Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/JTextComponent;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.swing.text.TextComponentPrintable.$assertionsDisabled:Z
ifne 1
invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 2: aload 1
instanceof javax.swing.JPasswordField
ifeq 6
3: new sun.swing.text.TextComponentPrintable$3
dup
aload 0
aload 1
invokespecial sun.swing.text.TextComponentPrintable$3.<init>:(Lsun/swing/text/TextComponentPrintable;Ljavax/swing/text/JTextComponent;)V
4: astore 2
5: goto 21
StackMap locals: javax.swing.text.JTextComponent
StackMap stack:
6: aload 1
instanceof javax.swing.JTextField
ifeq 10
7: new sun.swing.text.TextComponentPrintable$4
dup
aload 0
aload 1
invokespecial sun.swing.text.TextComponentPrintable$4.<init>:(Lsun/swing/text/TextComponentPrintable;Ljavax/swing/text/JTextComponent;)V
8: astore 2
9: goto 21
StackMap locals:
StackMap stack:
10: aload 1
instanceof javax.swing.JTextArea
ifeq 14
11: new sun.swing.text.TextComponentPrintable$5
dup
aload 0
aload 1
invokespecial sun.swing.text.TextComponentPrintable$5.<init>:(Lsun/swing/text/TextComponentPrintable;Ljavax/swing/text/JTextComponent;)V
12: astore 2
13: goto 21
StackMap locals:
StackMap stack:
14: aload 1
instanceof javax.swing.JTextPane
ifeq 18
15: new sun.swing.text.TextComponentPrintable$6
dup
aload 0
aload 1
invokespecial sun.swing.text.TextComponentPrintable$6.<init>:(Lsun/swing/text/TextComponentPrintable;Ljavax/swing/text/JTextComponent;)V
16: astore 2
17: goto 21
StackMap locals:
StackMap stack:
18: aload 1
instanceof javax.swing.JEditorPane
ifeq 21
19: new sun.swing.text.TextComponentPrintable$7
dup
aload 0
aload 1
invokespecial sun.swing.text.TextComponentPrintable$7.<init>:(Lsun/swing/text/TextComponentPrintable;Ljavax/swing/text/JTextComponent;)V
20: astore 2
21: StackMap locals:
StackMap stack:
aload 2
aconst_null
invokevirtual javax.swing.text.JTextComponent.setBorder:(Ljavax/swing/border/Border;)V
22: aload 2
aload 1
invokevirtual javax.swing.text.JTextComponent.isOpaque:()Z
invokevirtual javax.swing.text.JTextComponent.setOpaque:(Z)V
23: aload 2
aload 1
invokevirtual javax.swing.text.JTextComponent.isEditable:()Z
invokevirtual javax.swing.text.JTextComponent.setEditable:(Z)V
24: aload 2
aload 1
invokevirtual javax.swing.text.JTextComponent.isEnabled:()Z
invokevirtual javax.swing.text.JTextComponent.setEnabled:(Z)V
25: aload 2
aload 1
invokevirtual javax.swing.text.JTextComponent.getFont:()Ljava/awt/Font;
invokevirtual javax.swing.text.JTextComponent.setFont:(Ljava/awt/Font;)V
26: aload 2
aload 1
invokevirtual javax.swing.text.JTextComponent.getBackground:()Ljava/awt/Color;
invokevirtual javax.swing.text.JTextComponent.setBackground:(Ljava/awt/Color;)V
27: aload 2
aload 1
invokevirtual javax.swing.text.JTextComponent.getForeground:()Ljava/awt/Color;
invokevirtual javax.swing.text.JTextComponent.setForeground:(Ljava/awt/Color;)V
28: aload 2
29: aload 1
invokevirtual javax.swing.text.JTextComponent.getComponentOrientation:()Ljava/awt/ComponentOrientation;
30: invokevirtual javax.swing.text.JTextComponent.setComponentOrientation:(Ljava/awt/ComponentOrientation;)V
31: aload 2
instanceof javax.swing.JEditorPane
ifeq 43
32: aload 2
ldc "JEditorPane.honorDisplayProperties"
33: aload 1
34: ldc "JEditorPane.honorDisplayProperties"
35: invokevirtual javax.swing.text.JTextComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
36: invokevirtual javax.swing.text.JTextComponent.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
37: aload 2
ldc "JEditorPane.w3cLengthUnits"
38: aload 1
ldc "JEditorPane.w3cLengthUnits"
invokevirtual javax.swing.text.JTextComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
39: invokevirtual javax.swing.text.JTextComponent.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
40: aload 2
ldc "charset"
41: aload 1
ldc "charset"
invokevirtual javax.swing.text.JTextComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
42: invokevirtual javax.swing.text.JTextComponent.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
43: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
invokevirtual javax.swing.text.JTextComponent.setDocument:(Ljavax/swing/text/Document;)V
44: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Lsun/swing/text/TextComponentPrintable;
0 45 1 textComponent Ljavax/swing/text/JTextComponent;
2 45 2 ret Ljavax/swing/text/JTextComponent;
MethodParameters:
Name Flags
textComponent final
public int getNumberOfPages();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/swing/text/TextComponentPrintable;
public int print(java.awt.Graphics, java.awt.print.PageFormat, int);
descriptor: (Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.swing.text.TextComponentPrintable.isLayouted:Z
ifne 5
1: aload 1
instanceof java.awt.Graphics2D
ifeq 3
2: aload 0
getfield sun.swing.text.TextComponentPrintable.frc:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
checkcast java.awt.Graphics2D
invokevirtual java.awt.Graphics2D.getFontRenderContext:()Ljava/awt/font/FontRenderContext;
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
3: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.awt.print.PageFormat.getImageableWidth:()D
invokestatic java.lang.Math.floor:(D)D
d2i
invokevirtual sun.swing.text.TextComponentPrintable.layout:(I)V
4: aload 0
invokevirtual sun.swing.text.TextComponentPrintable.calculateRowsMetrics:()V
5: StackMap locals:
StackMap stack:
invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifne 23
6: new sun.swing.text.TextComponentPrintable$8
dup
aload 0
aload 1
aload 2
iload 3
invokespecial sun.swing.text.TextComponentPrintable$8.<init>:(Lsun/swing/text/TextComponentPrintable;Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)V
astore 5
start local 5 7: new java.util.concurrent.FutureTask
dup
aload 5
invokespecial java.util.concurrent.FutureTask.<init>:(Ljava/util/concurrent/Callable;)V
8: astore 6
start local 6 9: aload 6
invokestatic javax.swing.SwingUtilities.invokeLater:(Ljava/lang/Runnable;)V
10: aload 6
invokevirtual java.util.concurrent.FutureTask.get:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 4
start local 4 11: goto 24
end local 4 StackMap locals: sun.swing.text.TextComponentPrintable java.awt.Graphics java.awt.print.PageFormat int top java.util.concurrent.Callable java.util.concurrent.FutureTask
StackMap stack: java.lang.InterruptedException
12: astore 7
start local 7 13: new java.lang.RuntimeException
dup
aload 7
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 14: StackMap locals:
StackMap stack: java.util.concurrent.ExecutionException
astore 7
start local 7 15: aload 7
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
astore 8
start local 8 16: aload 8
instanceof java.awt.print.PrinterException
ifeq 18
17: aload 8
checkcast java.awt.print.PrinterException
athrow
18: StackMap locals: java.util.concurrent.ExecutionException java.lang.Throwable
StackMap stack:
aload 8
instanceof java.lang.RuntimeException
ifeq 20
19: aload 8
checkcast java.lang.RuntimeException
athrow
20: StackMap locals:
StackMap stack:
aload 8
instanceof java.lang.Error
ifeq 22
21: aload 8
checkcast java.lang.Error
athrow
22: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
aload 8
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 8 end local 7 end local 6 end local 5 23: StackMap locals: sun.swing.text.TextComponentPrintable java.awt.Graphics java.awt.print.PageFormat int
StackMap stack:
aload 0
aload 1
aload 2
iload 3
invokevirtual sun.swing.text.TextComponentPrintable.printOnEDT:(Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)I
istore 4
start local 4 24: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/swing/text/TextComponentPrintable;
0 25 1 graphics Ljava/awt/Graphics;
0 25 2 pf Ljava/awt/print/PageFormat;
0 25 3 pageIndex I
11 12 4 ret I
24 25 4 ret I
7 23 5 doPrintOnEDT Ljava/util/concurrent/Callable<Ljava/lang/Integer;>;
9 23 6 futurePrintOnEDT Ljava/util/concurrent/FutureTask<Ljava/lang/Integer;>;
13 14 7 e Ljava/lang/InterruptedException;
15 23 7 e Ljava/util/concurrent/ExecutionException;
16 23 8 cause Ljava/lang/Throwable;
Exception table:
from to target type
10 11 12 Class java.lang.InterruptedException
10 11 14 Class java.util.concurrent.ExecutionException
Exceptions:
throws java.awt.print.PrinterException
MethodParameters:
Name Flags
graphics final
pf final
pageIndex final
private int printOnEDT(java.awt.Graphics, java.awt.print.PageFormat, int);
descriptor: (Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic sun.swing.text.TextComponentPrintable.$assertionsDisabled:Z
ifne 1
invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
invokestatic javax.swing.BorderFactory.createEmptyBorder:()Ljavax/swing/border/Border;
astore 4
start local 4 2: aload 0
getfield sun.swing.text.TextComponentPrintable.headerFormat:Ljava/text/MessageFormat;
ifnonnull 3
aload 0
getfield sun.swing.text.TextComponentPrintable.footerFormat:Ljava/text/MessageFormat;
ifnull 16
3: StackMap locals: javax.swing.border.Border
StackMap stack:
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 3
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
astore 5
start local 5 4: aload 0
getfield sun.swing.text.TextComponentPrintable.headerFormat:Ljava/text/MessageFormat;
ifnull 10
5: new javax.swing.border.TitledBorder
dup
aload 4
6: aload 0
getfield sun.swing.text.TextComponentPrintable.headerFormat:Ljava/text/MessageFormat;
aload 5
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
7: iconst_2
iconst_1
8: aload 0
getfield sun.swing.text.TextComponentPrintable.headerFont:Ljava/awt/Font;
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getForeground:()Ljava/awt/Color;
9: invokespecial javax.swing.border.TitledBorder.<init>:(Ljavax/swing/border/Border;Ljava/lang/String;IILjava/awt/Font;Ljava/awt/Color;)V
astore 4
10: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.footerFormat:Ljava/text/MessageFormat;
ifnull 16
11: new javax.swing.border.TitledBorder
dup
aload 4
12: aload 0
getfield sun.swing.text.TextComponentPrintable.footerFormat:Ljava/text/MessageFormat;
aload 5
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
13: iconst_2
bipush 6
14: aload 0
getfield sun.swing.text.TextComponentPrintable.footerFont:Ljava/awt/Font;
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getForeground:()Ljava/awt/Color;
15: invokespecial javax.swing.border.TitledBorder.<init>:(Ljavax/swing/border/Border;Ljava/lang/String;IILjava/awt/Font;Ljava/awt/Color;)V
astore 4
end local 5 16: StackMap locals:
StackMap stack:
aload 4
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokeinterface javax.swing.border.Border.getBorderInsets:(Ljava/awt/Component;)Ljava/awt/Insets;
astore 5
start local 5 17: aload 0
iload 3
18: aload 2
invokevirtual java.awt.print.PageFormat.getImageableHeight:()D
invokestatic java.lang.Math.floor:(D)D
d2i
aload 5
getfield java.awt.Insets.top:I
isub
19: aload 5
getfield java.awt.Insets.bottom:I
20: isub
21: invokevirtual sun.swing.text.TextComponentPrintable.updatePagesMetrics:(II)V
22: aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
iload 3
if_icmpgt 24
23: iconst_1
ireturn
24: StackMap locals: java.awt.Insets
StackMap stack:
aload 1
invokevirtual java.awt.Graphics.create:()Ljava/awt/Graphics;
checkcast java.awt.Graphics2D
astore 6
start local 6 25: aload 6
aload 2
invokevirtual java.awt.print.PageFormat.getImageableX:()D
aload 2
invokevirtual java.awt.print.PageFormat.getImageableY:()D
invokevirtual java.awt.Graphics2D.translate:(DD)V
26: aload 4
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
aload 6
iconst_0
iconst_0
27: aload 2
invokevirtual java.awt.print.PageFormat.getImageableWidth:()D
invokestatic java.lang.Math.floor:(D)D
d2i
28: aload 2
invokevirtual java.awt.print.PageFormat.getImageableHeight:()D
invokestatic java.lang.Math.floor:(D)D
d2i
29: invokeinterface javax.swing.border.Border.paintBorder:(Ljava/awt/Component;Ljava/awt/Graphics;IIII)V
30: aload 6
iconst_0
aload 5
getfield java.awt.Insets.top:I
invokevirtual java.awt.Graphics2D.translate:(II)V
31: new java.awt.Rectangle
dup
iconst_0
iconst_0
32: aload 2
invokevirtual java.awt.print.PageFormat.getWidth:()D
d2i
33: aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.swing.text.TextComponentPrintable$IntegerSegment
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.end:I
34: aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.swing.text.TextComponentPrintable$IntegerSegment
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.start:I
35: isub
36: iconst_1
37: iadd
38: invokespecial java.awt.Rectangle.<init>:(IIII)V
astore 7
start local 7 39: aload 6
aload 7
invokevirtual java.awt.Graphics2D.clip:(Ljava/awt/Shape;)V
40: iconst_0
istore 8
start local 8 41: getstatic java.awt.ComponentOrientation.RIGHT_TO_LEFT:Ljava/awt/ComponentOrientation;
42: aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getComponentOrientation:()Ljava/awt/ComponentOrientation;
43: if_acmpne 45
44: aload 2
invokevirtual java.awt.print.PageFormat.getImageableWidth:()D
d2i
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getWidth:()I
isub
istore 8
45: StackMap locals: java.awt.Graphics2D java.awt.Rectangle int
StackMap stack:
aload 6
iload 8
aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.swing.text.TextComponentPrintable$IntegerSegment
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.start:I
ineg
invokevirtual java.awt.Graphics2D.translate:(II)V
46: aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
aload 6
invokevirtual javax.swing.text.JTextComponent.print:(Ljava/awt/Graphics;)V
47: aload 6
invokevirtual java.awt.Graphics2D.dispose:()V
48: iconst_0
ireturn
end local 8 end local 7 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 49 0 this Lsun/swing/text/TextComponentPrintable;
0 49 1 graphics Ljava/awt/Graphics;
0 49 2 pf Ljava/awt/print/PageFormat;
0 49 3 pageIndex I
2 49 4 border Ljavax/swing/border/Border;
4 16 5 formatArg [Ljava/lang/Object;
17 49 5 borderInsets Ljava/awt/Insets;
25 49 6 g2d Ljava/awt/Graphics2D;
39 49 7 clip Ljava/awt/Rectangle;
41 49 8 xStart I
Exceptions:
throws java.awt.print.PrinterException
MethodParameters:
Name Flags
graphics final
pf final
pageIndex final
private void releaseReadLock();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic sun.swing.text.TextComponentPrintable.$assertionsDisabled:Z
ifne 1
invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.textComponentToPrint:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 1
start local 1 2: aload 1
instanceof javax.swing.text.AbstractDocument
ifeq 7
3: aload 1
checkcast javax.swing.text.AbstractDocument
invokevirtual javax.swing.text.AbstractDocument.readUnlock:()V
4: aload 0
iconst_1
putfield sun.swing.text.TextComponentPrintable.needReadLock:Z
5: goto 7
StackMap locals: sun.swing.text.TextComponentPrintable javax.swing.text.Document
StackMap stack: java.lang.Error
6: pop
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/swing/text/TextComponentPrintable;
2 8 1 document Ljavax/swing/text/Document;
Exception table:
from to target type
3 5 6 Class java.lang.Error
private void acquireReadLock();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic sun.swing.text.TextComponentPrintable.$assertionsDisabled:Z
ifne 1
invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.needReadLock:Z
ifeq 10
2: new sun.swing.text.TextComponentPrintable$9
dup
aload 0
invokespecial sun.swing.text.TextComponentPrintable$9.<init>:(Lsun/swing/text/TextComponentPrintable;)V
3: invokestatic javax.swing.SwingUtilities.invokeAndWait:(Ljava/lang/Runnable;)V
4: goto 7
StackMap locals:
StackMap stack: java.lang.InterruptedException
5: pop
goto 7
6: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
pop
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.textComponentToPrint:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 1
start local 1 8: aload 1
checkcast javax.swing.text.AbstractDocument
invokevirtual javax.swing.text.AbstractDocument.readLock:()V
9: aload 0
iconst_0
putfield sun.swing.text.TextComponentPrintable.needReadLock:Z
end local 1 10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/swing/text/TextComponentPrintable;
8 10 1 document Ljavax/swing/text/Document;
Exception table:
from to target type
2 4 5 Class java.lang.InterruptedException
2 4 6 Class java.lang.reflect.InvocationTargetException
private void layout(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifne 23
1: new sun.swing.text.TextComponentPrintable$10
dup
aload 0
iload 1
invokespecial sun.swing.text.TextComponentPrintable$10.<init>:(Lsun/swing/text/TextComponentPrintable;I)V
astore 2
start local 2 2: new java.util.concurrent.FutureTask
dup
3: aload 2
4: invokespecial java.util.concurrent.FutureTask.<init>:(Ljava/util/concurrent/Callable;)V
astore 3
start local 3 5: aload 0
invokevirtual sun.swing.text.TextComponentPrintable.releaseReadLock:()V
6: aload 3
invokestatic javax.swing.SwingUtilities.invokeLater:(Ljava/lang/Runnable;)V
7: aload 3
invokevirtual java.util.concurrent.FutureTask.get:()Ljava/lang/Object;
pop
8: goto 21
StackMap locals: sun.swing.text.TextComponentPrintable int java.util.concurrent.Callable java.util.concurrent.FutureTask
StackMap stack: java.lang.InterruptedException
9: astore 4
start local 4 10: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 11: StackMap locals:
StackMap stack: java.util.concurrent.ExecutionException
astore 4
start local 4 12: aload 4
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
astore 5
start local 5 13: aload 5
instanceof java.lang.RuntimeException
ifeq 15
14: aload 5
checkcast java.lang.RuntimeException
athrow
15: StackMap locals: java.util.concurrent.ExecutionException java.lang.Throwable
StackMap stack:
aload 5
instanceof java.lang.Error
ifeq 17
16: aload 5
checkcast java.lang.Error
athrow
17: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 18: StackMap locals: sun.swing.text.TextComponentPrintable int java.util.concurrent.Callable java.util.concurrent.FutureTask
StackMap stack: java.lang.Throwable
astore 6
19: aload 0
invokevirtual sun.swing.text.TextComponentPrintable.acquireReadLock:()V
20: aload 6
athrow
21: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.swing.text.TextComponentPrintable.acquireReadLock:()V
end local 3 end local 2 22: goto 24
23: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual sun.swing.text.TextComponentPrintable.layoutOnEDT:(I)V
24: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.swing.text.TextComponentPrintable.isLayouted:Z
25: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/swing/text/TextComponentPrintable;
0 26 1 width I
2 22 2 doLayoutOnEDT Ljava/util/concurrent/Callable<Ljava/lang/Object;>;
5 22 3 futureLayoutOnEDT Ljava/util/concurrent/FutureTask<Ljava/lang/Object;>;
10 11 4 e Ljava/lang/InterruptedException;
12 18 4 e Ljava/util/concurrent/ExecutionException;
13 18 5 cause Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.InterruptedException
7 8 11 Class java.util.concurrent.ExecutionException
7 18 18 any
MethodParameters:
Name Flags
width final
private void layoutOnEDT(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: getstatic sun.swing.text.TextComponentPrintable.$assertionsDisabled:Z
ifne 1
invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new javax.swing.CellRendererPane
dup
invokespecial javax.swing.CellRendererPane.<init>:()V
astore 2
start local 2 2: new javax.swing.JViewport
dup
invokespecial javax.swing.JViewport.<init>:()V
astore 3
start local 3 3: aload 3
aconst_null
invokevirtual javax.swing.JViewport.setBorder:(Ljavax/swing/border/Border;)V
4: new java.awt.Dimension
dup
iload 1
ldc 2147482647
invokespecial java.awt.Dimension.<init>:(II)V
astore 4
start local 4 5: aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
instanceof javax.swing.JTextField
ifeq 8
6: new java.awt.Dimension
dup
aload 4
getfield java.awt.Dimension.width:I
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getPreferredSize:()Ljava/awt/Dimension;
getfield java.awt.Dimension.height:I
invokespecial java.awt.Dimension.<init>:(II)V
7: astore 4
8: StackMap locals: javax.swing.CellRendererPane javax.swing.JViewport java.awt.Dimension
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
aload 4
invokevirtual javax.swing.text.JTextComponent.setSize:(Ljava/awt/Dimension;)V
9: aload 3
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual javax.swing.JViewport.setComponentOrientation:(Ljava/awt/ComponentOrientation;)V
10: aload 3
aload 4
invokevirtual javax.swing.JViewport.setSize:(Ljava/awt/Dimension;)V
11: aload 3
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.JViewport.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
12: aload 2
aload 3
invokevirtual javax.swing.CellRendererPane.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
13: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/swing/text/TextComponentPrintable;
0 14 1 width I
2 14 2 rendererPane Ljavax/swing/CellRendererPane;
3 14 3 viewport Ljavax/swing/JViewport;
5 14 4 size Ljava/awt/Dimension;
MethodParameters:
Name Flags
width final
private void updatePagesMetrics(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: goto 27
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 3
start local 3 2: iload 3
iflt 4
3: aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.swing.text.TextComponentPrintable$IntegerSegment
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.end:I
iconst_1
iadd
goto 5
4: StackMap locals: int
StackMap stack:
iconst_0
5: StackMap locals:
StackMap stack: int
istore 4
start local 4 6: iconst_0
istore 5
start local 5 7: goto 9
8: StackMap locals: int int
StackMap stack:
iinc 5 1
9: StackMap locals:
StackMap stack:
iload 5
aload 0
getfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 13
10: aload 0
getfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.swing.text.TextComponentPrintable$IntegerSegment
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.end:I
iload 4
isub
iconst_1
iadd
11: iload 2
12: if_icmple 8
13: StackMap locals:
StackMap stack:
iload 5
ifne 18
14: aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
15: new sun.swing.text.TextComponentPrintable$IntegerSegment
dup
iload 4
iload 4
iload 2
iadd
iconst_1
isub
invokespecial sun.swing.text.TextComponentPrintable$IntegerSegment.<init>:(II)V
16: invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
17: goto 27
18: StackMap locals:
StackMap stack:
iinc 5 -1
19: aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
new sun.swing.text.TextComponentPrintable$IntegerSegment
dup
iload 4
20: aload 0
getfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.swing.text.TextComponentPrintable$IntegerSegment
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.end:I
invokespecial sun.swing.text.TextComponentPrintable$IntegerSegment.<init>:(II)V
21: invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
22: iconst_0
istore 6
start local 6 23: goto 26
24: StackMap locals: int
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
iconst_0
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
25: iinc 6 1
StackMap locals:
StackMap stack:
26: iload 6
iload 5
if_icmple 24
end local 6 end local 5 end local 4 end local 3 27: StackMap locals: sun.swing.text.TextComponentPrintable int int
StackMap stack:
iload 1
aload 0
getfield sun.swing.text.TextComponentPrintable.pagesMetrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 28
aload 0
getfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 1
28: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/swing/text/TextComponentPrintable;
0 29 1 pageIndex I
0 29 2 pageHeight I
2 27 3 lastPage I
6 27 4 pageStart I
7 27 5 rowIndex I
23 27 6 i I
MethodParameters:
Name Flags
pageIndex final
pageHeight final
private void calculateRowsMetrics();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=1
start local 0 0: aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
invokeinterface javax.swing.text.Document.getLength:()I
istore 1
start local 1 1: new java.util.ArrayList
dup
sipush 1000
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 2: iconst_0
istore 4
start local 4 3: iconst_m1
istore 5
start local 5 4: iconst_m1
istore 6
start local 6 5: goto 19
6: StackMap locals: sun.swing.text.TextComponentPrintable int java.util.List top int int int
StackMap stack:
aload 0
getfield sun.swing.text.TextComponentPrintable.printShell:Ljavax/swing/text/JTextComponent;
iload 4
invokevirtual javax.swing.text.JTextComponent.modelToView:(I)Ljava/awt/Rectangle;
astore 3
start local 3 7: aload 3
ifnull 18
8: aload 3
invokevirtual java.awt.Rectangle.getY:()D
d2i
istore 7
start local 7 9: aload 3
invokevirtual java.awt.Rectangle.getHeight:()D
d2i
istore 8
start local 8 10: iload 8
ifeq 18
11: iload 7
iload 5
if_icmpne 12
iload 8
iload 6
if_icmpeq 18
12: StackMap locals: sun.swing.text.TextComponentPrintable int java.util.List java.awt.Rectangle int int int int int
StackMap stack:
iload 7
istore 5
13: iload 8
istore 6
14: aload 2
new sun.swing.text.TextComponentPrintable$IntegerSegment
dup
iload 7
iload 7
iload 8
iadd
iconst_1
isub
invokespecial sun.swing.text.TextComponentPrintable$IntegerSegment.<init>:(II)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 15: goto 18
end local 3 StackMap locals: sun.swing.text.TextComponentPrintable int java.util.List top int int int
StackMap stack: javax.swing.text.BadLocationException
16: pop
17: getstatic sun.swing.text.TextComponentPrintable.$assertionsDisabled:Z
ifne 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals:
StackMap stack:
iinc 4 1
19: StackMap locals:
StackMap stack:
iload 4
iload 1
if_icmplt 6
end local 6 end local 5 end local 4 20: aload 2
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
21: ldc -2147483648
istore 4
start local 4 22: ldc -2147483648
istore 5
start local 5 23: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 32
StackMap locals: sun.swing.text.TextComponentPrintable int java.util.List top int int top java.util.Iterator
StackMap stack:
24: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.swing.text.TextComponentPrintable$IntegerSegment
astore 6
start local 6 25: iload 5
aload 6
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.start:I
if_icmpge 31
26: iload 5
ldc -2147483648
if_icmpeq 28
27: aload 0
getfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
new sun.swing.text.TextComponentPrintable$IntegerSegment
dup
iload 4
iload 5
invokespecial sun.swing.text.TextComponentPrintable$IntegerSegment.<init>:(II)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
28: StackMap locals: sun.swing.text.TextComponentPrintable int java.util.List top int int sun.swing.text.TextComponentPrintable$IntegerSegment java.util.Iterator
StackMap stack:
aload 6
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.start:I
istore 4
29: aload 6
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.end:I
istore 5
30: goto 32
31: StackMap locals:
StackMap stack:
aload 6
getfield sun.swing.text.TextComponentPrintable$IntegerSegment.end:I
istore 5
end local 6 32: StackMap locals: sun.swing.text.TextComponentPrintable int java.util.List top int int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 24
33: iload 5
ldc -2147483648
if_icmpeq 35
34: aload 0
getfield sun.swing.text.TextComponentPrintable.rowsMetrics:Ljava/util/List;
new sun.swing.text.TextComponentPrintable$IntegerSegment
dup
iload 4
iload 5
invokespecial sun.swing.text.TextComponentPrintable$IntegerSegment.<init>:(II)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
35: StackMap locals: sun.swing.text.TextComponentPrintable int java.util.List top int int
StackMap stack:
return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lsun/swing/text/TextComponentPrintable;
1 36 1 documentLength I
2 36 2 documentMetrics Ljava/util/List<Lsun/swing/text/TextComponentPrintable$IntegerSegment;>;
7 16 3 rect Ljava/awt/Rectangle;
3 20 4 i I
4 20 5 previousY I
5 20 6 previousHeight I
9 15 7 y I
10 15 8 height I
22 36 4 yStart I
23 36 5 yEnd I
25 32 6 segment Lsun/swing/text/TextComponentPrintable$IntegerSegment;
Exception table:
from to target type
6 15 16 Class javax.swing.text.BadLocationException
}
SourceFile: "TextComponentPrintable.java"
NestMembers:
sun.swing.text.TextComponentPrintable$1 sun.swing.text.TextComponentPrintable$10 sun.swing.text.TextComponentPrintable$2 sun.swing.text.TextComponentPrintable$3 sun.swing.text.TextComponentPrintable$4 sun.swing.text.TextComponentPrintable$5 sun.swing.text.TextComponentPrintable$6 sun.swing.text.TextComponentPrintable$7 sun.swing.text.TextComponentPrintable$8 sun.swing.text.TextComponentPrintable$9 sun.swing.text.TextComponentPrintable$IntegerSegment
InnerClasses:
public Tag = javax.swing.text.html.HTML$Tag of javax.swing.text.html.HTML
public abstract Iterator = javax.swing.text.html.HTMLDocument$Iterator of javax.swing.text.html.HTMLDocument
sun.swing.text.TextComponentPrintable$1
sun.swing.text.TextComponentPrintable$10
sun.swing.text.TextComponentPrintable$2
sun.swing.text.TextComponentPrintable$3
sun.swing.text.TextComponentPrintable$4
sun.swing.text.TextComponentPrintable$5
sun.swing.text.TextComponentPrintable$6
sun.swing.text.TextComponentPrintable$7
sun.swing.text.TextComponentPrintable$8
sun.swing.text.TextComponentPrintable$9
private IntegerSegment = sun.swing.text.TextComponentPrintable$IntegerSegment of sun.swing.text.TextComponentPrintable