public class javax.swing.plaf.basic.BasicHTML
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.basic.BasicHTML
super_class: java.lang.Object
{
private static final java.lang.String htmlDisable;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "html.disable"
public static final java.lang.String propertyKey;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "html"
public static final java.lang.String documentBaseKey;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "html.base"
private static javax.swing.plaf.basic.BasicHTML$BasicEditorKit basicHTMLFactory;
descriptor: Ljavax/swing/plaf/basic/BasicHTML$BasicEditorKit;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static javax.swing.text.ViewFactory basicHTMLViewFactory;
descriptor: Ljavax/swing/text/ViewFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String styleChanges;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "p { margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0 }body { margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0 }"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicHTML;
public static javax.swing.text.View createHTMLView(javax.swing.JComponent, java.lang.String);
descriptor: (Ljavax/swing/JComponent;Ljava/lang/String;)Ljavax/swing/text/View;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: invokestatic javax.swing.plaf.basic.BasicHTML.getFactory:()Ljavax/swing/plaf/basic/BasicHTML$BasicEditorKit;
astore 2
start local 2 1: aload 2
aload 0
invokevirtual javax.swing.JComponent.getFont:()Ljava/awt/Font;
2: aload 0
invokevirtual javax.swing.JComponent.getForeground:()Ljava/awt/Color;
3: invokevirtual javax.swing.plaf.basic.BasicHTML$BasicEditorKit.createDefaultDocument:(Ljava/awt/Font;Ljava/awt/Color;)Ljavax/swing/text/Document;
astore 3
start local 3 4: aload 0
ldc "html.base"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 5: aload 4
instanceof java.net.URL
ifeq 7
6: aload 3
checkcast javax.swing.text.html.HTMLDocument
aload 4
checkcast java.net.URL
invokevirtual javax.swing.text.html.HTMLDocument.setBase:(Ljava/net/URL;)V
7: StackMap locals: javax.swing.plaf.basic.BasicHTML$BasicEditorKit javax.swing.text.Document java.lang.Object
StackMap stack:
new java.io.StringReader
dup
aload 1
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
astore 5
start local 5 8: aload 2
aload 5
aload 3
iconst_0
invokevirtual javax.swing.plaf.basic.BasicHTML$BasicEditorKit.read:(Ljava/io/Reader;Ljavax/swing/text/Document;I)V
9: goto 11
StackMap locals: javax.swing.JComponent java.lang.String javax.swing.plaf.basic.BasicHTML$BasicEditorKit javax.swing.text.Document java.lang.Object java.io.Reader
StackMap stack: java.lang.Throwable
10: pop
11: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.plaf.basic.BasicHTML$BasicEditorKit.getViewFactory:()Ljavax/swing/text/ViewFactory;
astore 6
start local 6 12: aload 6
aload 3
invokeinterface javax.swing.text.Document.getDefaultRootElement:()Ljavax/swing/text/Element;
invokeinterface javax.swing.text.ViewFactory.create:(Ljavax/swing/text/Element;)Ljavax/swing/text/View;
astore 7
start local 7 13: new javax.swing.plaf.basic.BasicHTML$Renderer
dup
aload 0
aload 6
aload 7
invokespecial javax.swing.plaf.basic.BasicHTML$Renderer.<init>:(Ljavax/swing/JComponent;Ljavax/swing/text/ViewFactory;Ljavax/swing/text/View;)V
astore 8
start local 8 14: aload 8
areturn
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 15 0 c Ljavax/swing/JComponent;
0 15 1 html Ljava/lang/String;
1 15 2 kit Ljavax/swing/plaf/basic/BasicHTML$BasicEditorKit;
4 15 3 doc Ljavax/swing/text/Document;
5 15 4 base Ljava/lang/Object;
8 15 5 r Ljava/io/Reader;
12 15 6 f Ljavax/swing/text/ViewFactory;
13 15 7 hview Ljavax/swing/text/View;
14 15 8 v Ljavax/swing/text/View;
Exception table:
from to target type
8 9 10 Class java.lang.Throwable
MethodParameters:
Name Flags
c
html
public static int getHTMLBaseline(javax.swing.text.View, int, int);
descriptor: (Ljavax/swing/text/View;II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iflt 1
iload 2
ifge 4
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
2: ldc "Width and height must be >= 0"
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
instanceof javax.swing.plaf.basic.BasicHTML$Renderer
ifeq 6
5: aload 0
iconst_0
invokevirtual javax.swing.text.View.getView:(I)Ljavax/swing/text/View;
iload 1
iload 2
invokestatic javax.swing.plaf.basic.BasicHTML.getBaseline:(Ljavax/swing/text/View;II)I
ireturn
6: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 view Ljavax/swing/text/View;
0 7 1 w I
0 7 2 h I
MethodParameters:
Name Flags
view
w
h
static int getBaseline(javax.swing.JComponent, int, int, int, int);
descriptor: (Ljavax/swing/JComponent;IIII)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
ldc "html"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.text.View
astore 5
start local 5 1: aload 5
ifnull 6
2: aload 5
iload 3
iload 4
invokestatic javax.swing.plaf.basic.BasicHTML.getHTMLBaseline:(Ljavax/swing/text/View;II)I
istore 6
start local 6 3: iload 6
ifge 5
4: iload 6
ireturn
5: StackMap locals: javax.swing.text.View int
StackMap stack:
iload 1
iload 6
iadd
ireturn
end local 6 6: StackMap locals:
StackMap stack:
iload 1
iload 2
iadd
ireturn
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 7 0 c Ljavax/swing/JComponent;
0 7 1 y I
0 7 2 ascent I
0 7 3 w I
0 7 4 h I
1 7 5 view Ljavax/swing/text/View;
3 6 6 baseline I
MethodParameters:
Name Flags
c
y
ascent
w
h
static int getBaseline(javax.swing.text.View, int, int);
descriptor: (Ljavax/swing/text/View;II)I
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic javax.swing.plaf.basic.BasicHTML.hasParagraph:(Ljavax/swing/text/View;)Z
ifeq 3
1: aload 0
iload 1
i2f
iload 2
i2f
invokevirtual javax.swing.text.View.setSize:(FF)V
2: aload 0
new java.awt.Rectangle
dup
iconst_0
iconst_0
iload 1
iload 2
invokespecial java.awt.Rectangle.<init>:(IIII)V
invokestatic javax.swing.plaf.basic.BasicHTML.getBaseline:(Ljavax/swing/text/View;Ljava/awt/Shape;)I
ireturn
3: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 view Ljavax/swing/text/View;
0 4 1 w I
0 4 2 h I
MethodParameters:
Name Flags
view
w
h
private static int getBaseline(javax.swing.text.View, java.awt.Shape);
descriptor: (Ljavax/swing/text/View;Ljava/awt/Shape;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.text.View.getViewCount:()I
ifne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.text.View.getElement:()Ljavax/swing/text/Element;
invokeinterface javax.swing.text.Element.getAttributes:()Ljavax/swing/text/AttributeSet;
astore 2
start local 2 3: aconst_null
astore 3
start local 3 4: aload 2
ifnull 6
5: aload 2
getstatic javax.swing.text.StyleConstants.NameAttribute:Ljava/lang/Object;
invokeinterface javax.swing.text.AttributeSet.getAttribute:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
6: StackMap locals: javax.swing.text.AttributeSet java.lang.Object
StackMap stack:
iconst_0
istore 4
start local 4 7: aload 3
getstatic javax.swing.text.html.HTML$Tag.HTML:Ljavax/swing/text/html/HTML$Tag;
if_acmpne 9
aload 0
invokevirtual javax.swing.text.View.getViewCount:()I
iconst_1
if_icmple 9
8: iinc 4 1
9: StackMap locals: int
StackMap stack:
aload 0
iload 4
aload 1
invokevirtual javax.swing.text.View.getChildAllocation:(ILjava/awt/Shape;)Ljava/awt/Shape;
astore 1
10: aload 1
ifnonnull 12
11: iconst_m1
ireturn
12: StackMap locals:
StackMap stack:
aload 0
iload 4
invokevirtual javax.swing.text.View.getView:(I)Ljavax/swing/text/View;
astore 5
start local 5 13: aload 0
instanceof javax.swing.text.ParagraphView
ifeq 21
14: aload 1
instanceof java.awt.Rectangle
ifeq 17
15: aload 1
checkcast java.awt.Rectangle
astore 6
start local 6 16: goto 18
end local 6 17: StackMap locals: javax.swing.text.View
StackMap stack:
aload 1
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
astore 6
start local 6 18: StackMap locals: java.awt.Rectangle
StackMap stack:
aload 6
getfield java.awt.Rectangle.y:I
aload 6
getfield java.awt.Rectangle.height:I
i2f
19: aload 5
iconst_1
invokevirtual javax.swing.text.View.getAlignment:(I)F
fmul
f2i
20: iadd
ireturn
end local 6 21: StackMap locals:
StackMap stack:
aload 5
aload 1
invokestatic javax.swing.plaf.basic.BasicHTML.getBaseline:(Ljavax/swing/text/View;Ljava/awt/Shape;)I
ireturn
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 22 0 view Ljavax/swing/text/View;
0 22 1 bounds Ljava/awt/Shape;
3 22 2 attributes Ljavax/swing/text/AttributeSet;
4 22 3 name Ljava/lang/Object;
7 22 4 index I
13 22 5 child Ljavax/swing/text/View;
16 17 6 rect Ljava/awt/Rectangle;
18 21 6 rect Ljava/awt/Rectangle;
MethodParameters:
Name Flags
view
bounds
private static boolean hasParagraph(javax.swing.text.View);
descriptor: (Ljavax/swing/text/View;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
instanceof javax.swing.text.ParagraphView
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.text.View.getViewCount:()I
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.text.View.getElement:()Ljavax/swing/text/Element;
invokeinterface javax.swing.text.Element.getAttributes:()Ljavax/swing/text/AttributeSet;
astore 1
start local 1 5: aconst_null
astore 2
start local 2 6: aload 1
ifnull 8
7: aload 1
getstatic javax.swing.text.StyleConstants.NameAttribute:Ljava/lang/Object;
invokeinterface javax.swing.text.AttributeSet.getAttribute:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
8: StackMap locals: javax.swing.text.AttributeSet java.lang.Object
StackMap stack:
iconst_0
istore 3
start local 3 9: aload 2
getstatic javax.swing.text.html.HTML$Tag.HTML:Ljavax/swing/text/html/HTML$Tag;
if_acmpne 11
aload 0
invokevirtual javax.swing.text.View.getViewCount:()I
iconst_1
if_icmple 11
10: iconst_1
istore 3
11: StackMap locals: int
StackMap stack:
aload 0
iload 3
invokevirtual javax.swing.text.View.getView:(I)Ljavax/swing/text/View;
invokestatic javax.swing.plaf.basic.BasicHTML.hasParagraph:(Ljavax/swing/text/View;)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 view Ljavax/swing/text/View;
5 12 1 attributes Ljavax/swing/text/AttributeSet;
6 12 2 name Ljava/lang/Object;
9 12 3 index I
MethodParameters:
Name Flags
view
public static boolean isHTMLString(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnull 4
1: aload 0
invokevirtual java.lang.String.length:()I
bipush 6
if_icmplt 4
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 60
if_icmpne 4
aload 0
iconst_5
invokevirtual java.lang.String.charAt:(I)C
bipush 62
if_icmpne 4
2: aload 0
iconst_1
iconst_5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
start local 1 3: aload 1
ldc "html"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 1 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 s Ljava/lang/String;
3 4 1 tag Ljava/lang/String;
MethodParameters:
Name Flags
s
public static void updateRenderer(javax.swing.JComponent, java.lang.String);
descriptor: (Ljavax/swing/JComponent;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
ldc "html"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.text.View
astore 3
start local 3 2: aload 0
ldc "html.disable"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
astore 4
start local 4 3: aload 4
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
if_acmpeq 5
aload 1
invokestatic javax.swing.plaf.basic.BasicHTML.isHTMLString:(Ljava/lang/String;)Z
ifeq 5
4: aload 0
aload 1
invokestatic javax.swing.plaf.basic.BasicHTML.createHTMLView:(Ljavax/swing/JComponent;Ljava/lang/String;)Ljavax/swing/text/View;
astore 2
5: StackMap locals: javax.swing.text.View javax.swing.text.View java.lang.Boolean
StackMap stack:
aload 2
aload 3
if_acmpeq 11
aload 3
ifnull 11
6: iconst_0
istore 5
start local 5 7: goto 10
8: StackMap locals: int
StackMap stack:
aload 3
iload 5
invokevirtual javax.swing.text.View.getView:(I)Ljavax/swing/text/View;
aconst_null
invokevirtual javax.swing.text.View.setParent:(Ljavax/swing/text/View;)V
9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 3
invokevirtual javax.swing.text.View.getViewCount:()I
if_icmplt 8
end local 5 11: StackMap locals:
StackMap stack:
aload 0
ldc "html"
aload 2
invokevirtual javax.swing.JComponent.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "AccessibleName"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
13: astore 5
start local 5 14: aconst_null
astore 6
start local 6 15: aload 5
ifnull 20
aload 3
ifnull 20
16: aload 3
invokevirtual javax.swing.text.View.getDocument:()Ljavax/swing/text/Document;
iconst_0
aload 3
invokevirtual javax.swing.text.View.getDocument:()Ljavax/swing/text/Document;
invokeinterface javax.swing.text.Document.getLength:()I
invokeinterface javax.swing.text.Document.getText:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
17: astore 6
18: goto 20
StackMap locals: javax.swing.JComponent java.lang.String javax.swing.text.View javax.swing.text.View java.lang.Boolean java.lang.String java.lang.String
StackMap stack: javax.swing.text.BadLocationException
19: pop
20: StackMap locals:
StackMap stack:
aload 5
ifnull 22
21: aload 5
aload 6
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 29
22: StackMap locals:
StackMap stack:
aconst_null
astore 7
start local 7 23: aload 2
ifnull 28
24: aload 2
invokevirtual javax.swing.text.View.getDocument:()Ljavax/swing/text/Document;
iconst_0
aload 2
invokevirtual javax.swing.text.View.getDocument:()Ljavax/swing/text/Document;
invokeinterface javax.swing.text.Document.getLength:()I
invokeinterface javax.swing.text.Document.getText:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
25: astore 7
26: goto 28
StackMap locals: javax.swing.JComponent java.lang.String javax.swing.text.View javax.swing.text.View java.lang.Boolean java.lang.String java.lang.String java.lang.String
StackMap stack: javax.swing.text.BadLocationException
27: pop
28: StackMap locals:
StackMap stack:
aload 0
ldc "AccessibleName"
aload 7
invokevirtual javax.swing.JComponent.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 7 29: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 c Ljavax/swing/JComponent;
0 30 1 text Ljava/lang/String;
1 30 2 value Ljavax/swing/text/View;
2 30 3 oldValue Ljavax/swing/text/View;
3 30 4 htmlDisabled Ljava/lang/Boolean;
7 11 5 i I
14 30 5 currentAccessibleNameProperty Ljava/lang/String;
15 30 6 previousParsedText Ljava/lang/String;
23 29 7 parsedText Ljava/lang/String;
Exception table:
from to target type
16 18 19 Class javax.swing.text.BadLocationException
24 26 27 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
c
text
static javax.swing.plaf.basic.BasicHTML$BasicEditorKit getFactory();
descriptor: ()Ljavax/swing/plaf/basic/BasicHTML$BasicEditorKit;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic javax.swing.plaf.basic.BasicHTML.basicHTMLFactory:Ljavax/swing/plaf/basic/BasicHTML$BasicEditorKit;
ifnonnull 3
1: new javax.swing.plaf.basic.BasicHTML$BasicHTMLViewFactory
dup
invokespecial javax.swing.plaf.basic.BasicHTML$BasicHTMLViewFactory.<init>:()V
putstatic javax.swing.plaf.basic.BasicHTML.basicHTMLViewFactory:Ljavax/swing/text/ViewFactory;
2: new javax.swing.plaf.basic.BasicHTML$BasicEditorKit
dup
invokespecial javax.swing.plaf.basic.BasicHTML$BasicEditorKit.<init>:()V
putstatic javax.swing.plaf.basic.BasicHTML.basicHTMLFactory:Ljavax/swing/plaf/basic/BasicHTML$BasicEditorKit;
3: StackMap locals:
StackMap stack:
getstatic javax.swing.plaf.basic.BasicHTML.basicHTMLFactory:Ljavax/swing/plaf/basic/BasicHTML$BasicEditorKit;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "BasicHTML.java"
NestMembers:
javax.swing.plaf.basic.BasicHTML$BasicDocument javax.swing.plaf.basic.BasicHTML$BasicEditorKit javax.swing.plaf.basic.BasicHTML$BasicHTMLViewFactory javax.swing.plaf.basic.BasicHTML$Renderer
InnerClasses:
BasicDocument = javax.swing.plaf.basic.BasicHTML$BasicDocument of javax.swing.plaf.basic.BasicHTML
BasicEditorKit = javax.swing.plaf.basic.BasicHTML$BasicEditorKit of javax.swing.plaf.basic.BasicHTML
BasicHTMLViewFactory = javax.swing.plaf.basic.BasicHTML$BasicHTMLViewFactory of javax.swing.plaf.basic.BasicHTML
Renderer = javax.swing.plaf.basic.BasicHTML$Renderer of javax.swing.plaf.basic.BasicHTML
public Tag = javax.swing.text.html.HTML$Tag of javax.swing.text.html.HTML