public class javax.swing.text.DefaultHighlighter$DefaultHighlightPainter extends javax.swing.text.LayeredHighlighter$LayerPainter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.DefaultHighlighter$DefaultHighlightPainter
super_class: javax.swing.text.LayeredHighlighter$LayerPainter
{
private java.awt.Color color;
descriptor: Ljava/awt/Color;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.awt.Color);
descriptor: (Ljava/awt/Color;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.swing.text.LayeredHighlighter$LayerPainter.<init>:()V
1: aload 0
aload 1
putfield javax.swing.text.DefaultHighlighter$DefaultHighlightPainter.color:Ljava/awt/Color;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/DefaultHighlighter$DefaultHighlightPainter;
0 3 1 c Ljava/awt/Color;
MethodParameters:
Name Flags
c
public java.awt.Color getColor();
descriptor: ()Ljava/awt/Color;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.DefaultHighlighter$DefaultHighlightPainter.color:Ljava/awt/Color;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/DefaultHighlighter$DefaultHighlightPainter;
public void paint(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent);
descriptor: (Ljava/awt/Graphics;IILjava/awt/Shape;Ljavax/swing/text/JTextComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 4
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
astore 6
start local 6 1: aload 5
invokevirtual javax.swing.text.JTextComponent.getUI:()Ljavax/swing/plaf/TextUI;
astore 7
start local 7 2: aload 7
aload 5
iload 2
invokevirtual javax.swing.plaf.TextUI.modelToView:(Ljavax/swing/text/JTextComponent;I)Ljava/awt/Rectangle;
astore 8
start local 8 3: aload 7
aload 5
iload 3
invokevirtual javax.swing.plaf.TextUI.modelToView:(Ljavax/swing/text/JTextComponent;I)Ljava/awt/Rectangle;
astore 9
start local 9 4: aload 0
invokevirtual javax.swing.text.DefaultHighlighter$DefaultHighlightPainter.getColor:()Ljava/awt/Color;
astore 10
start local 10 5: aload 10
ifnonnull 8
6: aload 1
aload 5
invokevirtual javax.swing.text.JTextComponent.getSelectionColor:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
7: goto 9
8: StackMap locals: javax.swing.text.DefaultHighlighter$DefaultHighlightPainter java.awt.Graphics int int java.awt.Shape javax.swing.text.JTextComponent java.awt.Rectangle javax.swing.plaf.TextUI java.awt.Rectangle java.awt.Rectangle java.awt.Color
StackMap stack:
aload 1
aload 10
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
9: StackMap locals:
StackMap stack:
aload 8
getfield java.awt.Rectangle.y:I
aload 9
getfield java.awt.Rectangle.y:I
if_icmpne 13
10: aload 8
aload 9
invokevirtual java.awt.Rectangle.union:(Ljava/awt/Rectangle;)Ljava/awt/Rectangle;
astore 11
start local 11 11: aload 1
aload 11
getfield java.awt.Rectangle.x:I
aload 11
getfield java.awt.Rectangle.y:I
aload 11
getfield java.awt.Rectangle.width:I
aload 11
getfield java.awt.Rectangle.height:I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
end local 11 12: goto 22
13: StackMap locals:
StackMap stack:
aload 6
getfield java.awt.Rectangle.x:I
aload 6
getfield java.awt.Rectangle.width:I
iadd
aload 8
getfield java.awt.Rectangle.x:I
isub
istore 11
start local 11 14: aload 1
aload 8
getfield java.awt.Rectangle.x:I
aload 8
getfield java.awt.Rectangle.y:I
iload 11
aload 8
getfield java.awt.Rectangle.height:I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
15: aload 8
getfield java.awt.Rectangle.y:I
aload 8
getfield java.awt.Rectangle.height:I
iadd
aload 9
getfield java.awt.Rectangle.y:I
if_icmpeq 19
16: aload 1
aload 6
getfield java.awt.Rectangle.x:I
aload 8
getfield java.awt.Rectangle.y:I
aload 8
getfield java.awt.Rectangle.height:I
iadd
aload 6
getfield java.awt.Rectangle.width:I
17: aload 9
getfield java.awt.Rectangle.y:I
aload 8
getfield java.awt.Rectangle.y:I
aload 8
getfield java.awt.Rectangle.height:I
iadd
isub
18: invokevirtual java.awt.Graphics.fillRect:(IIII)V
19: StackMap locals: int
StackMap stack:
aload 1
aload 6
getfield java.awt.Rectangle.x:I
aload 9
getfield java.awt.Rectangle.y:I
aload 9
getfield java.awt.Rectangle.x:I
aload 6
getfield java.awt.Rectangle.x:I
isub
aload 9
getfield java.awt.Rectangle.height:I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
end local 11 end local 10 end local 9 end local 8 end local 7 20: goto 22
StackMap locals: javax.swing.text.DefaultHighlighter$DefaultHighlightPainter java.awt.Graphics int int java.awt.Shape javax.swing.text.JTextComponent java.awt.Rectangle
StackMap stack: javax.swing.text.BadLocationException
21: pop
22: 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 23 0 this Ljavax/swing/text/DefaultHighlighter$DefaultHighlightPainter;
0 23 1 g Ljava/awt/Graphics;
0 23 2 offs0 I
0 23 3 offs1 I
0 23 4 bounds Ljava/awt/Shape;
0 23 5 c Ljavax/swing/text/JTextComponent;
1 23 6 alloc Ljava/awt/Rectangle;
2 20 7 mapper Ljavax/swing/plaf/TextUI;
3 20 8 p0 Ljava/awt/Rectangle;
4 20 9 p1 Ljava/awt/Rectangle;
5 20 10 color Ljava/awt/Color;
11 12 11 r Ljava/awt/Rectangle;
14 20 11 p0ToMarginWidth I
Exception table:
from to target type
1 20 21 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
g
offs0
offs1
bounds
c
public java.awt.Shape paintLayer(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View);
descriptor: (Ljava/awt/Graphics;IILjava/awt/Shape;Ljavax/swing/text/JTextComponent;Ljavax/swing/text/View;)Ljava/awt/Shape;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
invokevirtual javax.swing.text.DefaultHighlighter$DefaultHighlightPainter.getColor:()Ljava/awt/Color;
astore 7
start local 7 1: aload 7
ifnonnull 4
2: aload 1
aload 5
invokevirtual javax.swing.text.JTextComponent.getSelectionColor:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
3: goto 5
4: StackMap locals: java.awt.Color
StackMap stack:
aload 1
aload 7
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
5: StackMap locals:
StackMap stack:
iload 2
aload 6
invokevirtual javax.swing.text.View.getStartOffset:()I
if_icmpne 12
6: iload 3
aload 6
invokevirtual javax.swing.text.View.getEndOffset:()I
if_icmpne 12
7: aload 4
instanceof java.awt.Rectangle
ifeq 10
8: aload 4
checkcast java.awt.Rectangle
astore 8
start local 8 9: goto 23
end local 8 10: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
astore 8
start local 8 11: goto 23
end local 8 12: StackMap locals:
StackMap stack:
aload 6
iload 2
getstatic javax.swing.text.Position$Bias.Forward:Ljavax/swing/text/Position$Bias;
13: iload 3
getstatic javax.swing.text.Position$Bias.Backward:Ljavax/swing/text/Position$Bias;
14: aload 4
15: invokevirtual javax.swing.text.View.modelToView:(ILjavax/swing/text/Position$Bias;ILjavax/swing/text/Position$Bias;Ljava/awt/Shape;)Ljava/awt/Shape;
astore 9
start local 9 16: aload 9
instanceof java.awt.Rectangle
ifeq 18
17: aload 9
checkcast java.awt.Rectangle
goto 19
StackMap locals: javax.swing.text.DefaultHighlighter$DefaultHighlightPainter java.awt.Graphics int int java.awt.Shape javax.swing.text.JTextComponent javax.swing.text.View java.awt.Color top java.awt.Shape
StackMap stack:
18: aload 9
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
19: StackMap locals:
StackMap stack: java.awt.Rectangle
astore 8
end local 9 start local 8 20: goto 23
end local 8 StackMap locals: javax.swing.text.DefaultHighlighter$DefaultHighlightPainter java.awt.Graphics int int java.awt.Shape javax.swing.text.JTextComponent javax.swing.text.View java.awt.Color
StackMap stack: javax.swing.text.BadLocationException
21: pop
22: aconst_null
astore 8
start local 8 23: StackMap locals: java.awt.Rectangle
StackMap stack:
aload 8
ifnull 26
24: aload 8
aload 8
getfield java.awt.Rectangle.width:I
iconst_1
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Rectangle.width:I
25: aload 1
aload 8
getfield java.awt.Rectangle.x:I
aload 8
getfield java.awt.Rectangle.y:I
aload 8
getfield java.awt.Rectangle.width:I
aload 8
getfield java.awt.Rectangle.height:I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
26: StackMap locals:
StackMap stack:
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 27 0 this Ljavax/swing/text/DefaultHighlighter$DefaultHighlightPainter;
0 27 1 g Ljava/awt/Graphics;
0 27 2 offs0 I
0 27 3 offs1 I
0 27 4 bounds Ljava/awt/Shape;
0 27 5 c Ljavax/swing/text/JTextComponent;
0 27 6 view Ljavax/swing/text/View;
1 27 7 color Ljava/awt/Color;
9 10 8 r Ljava/awt/Rectangle;
11 12 8 r Ljava/awt/Rectangle;
20 21 8 r Ljava/awt/Rectangle;
23 27 8 r Ljava/awt/Rectangle;
16 20 9 shape Ljava/awt/Shape;
Exception table:
from to target type
12 20 21 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
g
offs0
offs1
bounds
c
view
}
SourceFile: "DefaultHighlighter.java"
NestHost: javax.swing.text.DefaultHighlighter
InnerClasses:
public DefaultHighlightPainter = javax.swing.text.DefaultHighlighter$DefaultHighlightPainter of javax.swing.text.DefaultHighlighter
public abstract LayerPainter = javax.swing.text.LayeredHighlighter$LayerPainter of javax.swing.text.LayeredHighlighter
public final Bias = javax.swing.text.Position$Bias of javax.swing.text.Position