public class javax.swing.text.FieldView extends javax.swing.text.PlainView
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.FieldView
super_class: javax.swing.text.PlainView
{
public void <init>(javax.swing.text.Element);
descriptor: (Ljavax/swing/text/Element;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.text.PlainView.<init>:(Ljavax/swing/text/Element;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/FieldView;
0 2 1 elem Ljavax/swing/text/Element;
MethodParameters:
Name Flags
elem
protected java.awt.FontMetrics getFontMetrics();
descriptor: ()Ljava/awt/FontMetrics;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.text.FieldView.getContainer:()Ljava/awt/Container;
astore 1
start local 1 1: aload 1
aload 1
invokevirtual java.awt.Component.getFont:()Ljava/awt/Font;
invokevirtual java.awt.Component.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/FieldView;
1 2 1 c Ljava/awt/Component;
protected java.awt.Shape adjustAllocation(java.awt.Shape);
descriptor: (Ljava/awt/Shape;)Ljava/awt/Shape;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=13, args_size=2
start local 0 start local 1 0: aload 1
ifnull 45
1: aload 1
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
astore 2
start local 2 2: aload 0
iconst_1
invokevirtual javax.swing.text.FieldView.getPreferredSpan:(I)F
f2i
istore 3
start local 3 3: aload 0
iconst_0
invokevirtual javax.swing.text.FieldView.getPreferredSpan:(I)F
f2i
istore 4
start local 4 4: aload 2
getfield java.awt.Rectangle.height:I
iload 3
if_icmpeq 8
5: aload 2
getfield java.awt.Rectangle.height:I
iload 3
isub
istore 5
start local 5 6: aload 2
dup
getfield java.awt.Rectangle.y:I
iload 5
iconst_2
idiv
iadd
putfield java.awt.Rectangle.y:I
7: aload 2
dup
getfield java.awt.Rectangle.height:I
iload 5
isub
putfield java.awt.Rectangle.height:I
end local 5 8: StackMap locals: java.awt.Rectangle int int
StackMap stack:
aload 0
invokevirtual javax.swing.text.FieldView.getContainer:()Ljava/awt/Container;
astore 5
start local 5 9: aload 5
instanceof javax.swing.JTextField
ifeq 44
10: aload 5
checkcast javax.swing.JTextField
astore 6
start local 6 11: aload 6
invokevirtual javax.swing.JTextField.getHorizontalVisibility:()Ljavax/swing/BoundedRangeModel;
astore 7
start local 7 12: iload 4
aload 2
getfield java.awt.Rectangle.width:I
invokestatic java.lang.Math.max:(II)I
istore 8
start local 8 13: aload 7
invokeinterface javax.swing.BoundedRangeModel.getValue:()I
istore 9
start local 9 14: iload 8
aload 2
getfield java.awt.Rectangle.width:I
iconst_1
isub
invokestatic java.lang.Math.min:(II)I
istore 10
start local 10 15: iload 9
iload 10
iadd
iload 8
if_icmple 17
16: iload 8
iload 10
isub
istore 9
17: StackMap locals: javax.swing.text.FieldView java.awt.Shape java.awt.Rectangle int int java.awt.Component javax.swing.JTextField javax.swing.BoundedRangeModel int int int
StackMap stack:
aload 7
iload 9
iload 10
aload 7
invokeinterface javax.swing.BoundedRangeModel.getMinimum:()I
18: iload 8
iconst_0
19: invokeinterface javax.swing.BoundedRangeModel.setRangeProperties:(IIIIZ)V
20: iload 4
aload 2
getfield java.awt.Rectangle.width:I
if_icmpge 42
21: aload 2
getfield java.awt.Rectangle.width:I
iconst_1
isub
iload 4
isub
istore 11
start local 11 22: aload 5
checkcast javax.swing.JTextField
invokevirtual javax.swing.JTextField.getHorizontalAlignment:()I
istore 12
start local 12 23: aload 5
invokestatic javax.swing.text.Utilities.isLeftToRight:(Ljava/awt/Component;)Z
ifeq 30
24: iload 12
bipush 10
if_icmpne 27
25: iconst_2
istore 12
26: goto 35
27: StackMap locals: int int
StackMap stack:
iload 12
bipush 11
if_icmpne 35
28: iconst_4
istore 12
29: goto 35
30: StackMap locals:
StackMap stack:
iload 12
bipush 10
if_icmpne 33
31: iconst_4
istore 12
32: goto 35
33: StackMap locals:
StackMap stack:
iload 12
bipush 11
if_icmpne 35
34: iconst_2
istore 12
35: StackMap locals:
StackMap stack:
iload 12
tableswitch { // 0 - 4
0: 36
1: 41
2: 41
3: 41
4: 39
default: 41
}
36: StackMap locals:
StackMap stack:
aload 2
dup
getfield java.awt.Rectangle.x:I
iload 11
iconst_2
idiv
iadd
putfield java.awt.Rectangle.x:I
37: aload 2
dup
getfield java.awt.Rectangle.width:I
iload 11
isub
putfield java.awt.Rectangle.width:I
38: goto 44
39: StackMap locals:
StackMap stack:
aload 2
dup
getfield java.awt.Rectangle.x:I
iload 11
iadd
putfield java.awt.Rectangle.x:I
40: aload 2
dup
getfield java.awt.Rectangle.width:I
iload 11
isub
putfield java.awt.Rectangle.width:I
end local 12 end local 11 41: StackMap locals:
StackMap stack:
goto 44
42: StackMap locals:
StackMap stack:
aload 2
iload 4
putfield java.awt.Rectangle.width:I
43: aload 2
dup
getfield java.awt.Rectangle.x:I
aload 7
invokeinterface javax.swing.BoundedRangeModel.getValue:()I
isub
putfield java.awt.Rectangle.x:I
end local 10 end local 9 end local 8 end local 7 end local 6 44: StackMap locals: javax.swing.text.FieldView java.awt.Shape java.awt.Rectangle int int java.awt.Component
StackMap stack:
aload 2
areturn
end local 5 end local 4 end local 3 end local 2 45: StackMap locals: javax.swing.text.FieldView java.awt.Shape
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Ljavax/swing/text/FieldView;
0 46 1 a Ljava/awt/Shape;
2 45 2 bounds Ljava/awt/Rectangle;
3 45 3 vspan I
4 45 4 hspan I
6 8 5 slop I
9 45 5 c Ljava/awt/Component;
11 44 6 field Ljavax/swing/JTextField;
12 44 7 vis Ljavax/swing/BoundedRangeModel;
13 44 8 max I
14 44 9 value I
15 44 10 extent I
22 41 11 slop I
23 41 12 align I
MethodParameters:
Name Flags
a
void updateVisibilityModel();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=9, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.text.FieldView.getContainer:()Ljava/awt/Container;
astore 1
start local 1 1: aload 1
instanceof javax.swing.JTextField
ifeq 16
2: aload 1
checkcast javax.swing.JTextField
astore 2
start local 2 3: aload 2
invokevirtual javax.swing.JTextField.getHorizontalVisibility:()Ljavax/swing/BoundedRangeModel;
astore 3
start local 3 4: aload 0
iconst_0
invokevirtual javax.swing.text.FieldView.getPreferredSpan:(I)F
f2i
istore 4
start local 4 5: aload 3
invokeinterface javax.swing.BoundedRangeModel.getExtent:()I
istore 5
start local 5 6: iload 4
iload 5
invokestatic java.lang.Math.max:(II)I
istore 6
start local 6 7: iload 5
ifne 8
iload 6
goto 9
StackMap locals: javax.swing.text.FieldView java.awt.Component javax.swing.JTextField javax.swing.BoundedRangeModel int int int
StackMap stack:
8: iload 5
StackMap locals:
StackMap stack: int
9: istore 5
10: iload 6
iload 5
isub
istore 7
start local 7 11: aload 3
invokeinterface javax.swing.BoundedRangeModel.getValue:()I
istore 8
start local 8 12: iload 8
iload 5
iadd
iload 6
if_icmple 14
13: iload 6
iload 5
isub
istore 8
14: StackMap locals: int int
StackMap stack:
iconst_0
iload 7
iload 8
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
istore 7
15: aload 3
iload 7
iload 5
iconst_0
iload 6
iconst_0
invokeinterface javax.swing.BoundedRangeModel.setRangeProperties:(IIIIZ)V
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 16: StackMap locals: javax.swing.text.FieldView java.awt.Component
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/swing/text/FieldView;
1 17 1 c Ljava/awt/Component;
3 16 2 field Ljavax/swing/JTextField;
4 16 3 vis Ljavax/swing/BoundedRangeModel;
5 16 4 hspan I
6 16 5 extent I
7 16 6 maximum I
11 16 7 value I
12 16 8 oldValue I
public void paint(java.awt.Graphics, java.awt.Shape);
descriptor: (Ljava/awt/Graphics;Ljava/awt/Shape;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
checkcast java.awt.Rectangle
astore 3
start local 3 1: aload 1
aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
aload 3
getfield java.awt.Rectangle.width:I
aload 3
getfield java.awt.Rectangle.height:I
invokevirtual java.awt.Graphics.clipRect:(IIII)V
2: aload 0
aload 1
aload 2
invokespecial javax.swing.text.PlainView.paint:(Ljava/awt/Graphics;Ljava/awt/Shape;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/FieldView;
0 4 1 g Ljava/awt/Graphics;
0 4 2 a Ljava/awt/Shape;
1 4 3 r Ljava/awt/Rectangle;
MethodParameters:
Name Flags
g
a
java.awt.Shape adjustPaintRegion(java.awt.Shape);
descriptor: (Ljava/awt/Shape;)Ljava/awt/Shape;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.text.FieldView.adjustAllocation:(Ljava/awt/Shape;)Ljava/awt/Shape;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/FieldView;
0 1 1 a Ljava/awt/Shape;
MethodParameters:
Name Flags
a
public float getPreferredSpan(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: iload 1
tableswitch { // 0 - 0
0: 1
default: 24
}
1: StackMap locals:
StackMap stack:
invokestatic javax.swing.text.SegmentCache.getSharedSegment:()Ljavax/swing/text/Segment;
astore 2
start local 2 2: aload 0
invokevirtual javax.swing.text.FieldView.getDocument:()Ljavax/swing/text/Document;
astore 3
start local 3 3: aload 0
invokevirtual javax.swing.text.FieldView.getFontMetrics:()Ljava/awt/FontMetrics;
astore 5
start local 5 4: aload 3
iconst_0
aload 3
invokeinterface javax.swing.text.Document.getLength:()I
aload 2
invokeinterface javax.swing.text.Document.getText:(IILjavax/swing/text/Segment;)V
5: aload 2
aload 5
iconst_0
aload 0
iconst_0
invokestatic javax.swing.text.Utilities.getTabbedTextWidth:(Ljavax/swing/text/Segment;Ljava/awt/FontMetrics;ILjavax/swing/text/TabExpander;I)I
istore 4
start local 4 6: aload 2
getfield javax.swing.text.Segment.count:I
ifle 18
7: aload 0
invokevirtual javax.swing.text.FieldView.getContainer:()Ljava/awt/Container;
astore 6
start local 6 8: aload 0
9: aload 6
instanceof javax.swing.JComponent
ifeq 11
10: aload 6
checkcast javax.swing.JComponent
goto 12
StackMap locals: javax.swing.text.FieldView int javax.swing.text.Segment javax.swing.text.Document int java.awt.FontMetrics java.awt.Component
StackMap stack: javax.swing.text.FieldView
11: aconst_null
StackMap locals: javax.swing.text.FieldView int javax.swing.text.Segment javax.swing.text.Document int java.awt.FontMetrics java.awt.Component
StackMap stack: javax.swing.text.FieldView javax.swing.JComponent
12: aload 5
13: aload 2
getfield javax.swing.text.Segment.array:[C
aload 2
getfield javax.swing.text.Segment.offset:I
caload
14: invokestatic sun.swing.SwingUtilities2.getLeftSideBearing:(Ljavax/swing/JComponent;Ljava/awt/FontMetrics;C)I
15: putfield javax.swing.text.FieldView.firstLineOffset:I
16: aload 0
iconst_0
aload 0
getfield javax.swing.text.FieldView.firstLineOffset:I
ineg
invokestatic java.lang.Math.max:(II)I
putfield javax.swing.text.FieldView.firstLineOffset:I
end local 6 17: goto 22
18: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield javax.swing.text.FieldView.firstLineOffset:I
end local 5 19: goto 22
end local 4 StackMap locals: javax.swing.text.FieldView int javax.swing.text.Segment javax.swing.text.Document
StackMap stack: javax.swing.text.BadLocationException
20: pop
21: iconst_0
istore 4
start local 4 22: StackMap locals: int
StackMap stack:
aload 2
invokestatic javax.swing.text.SegmentCache.releaseSharedSegment:(Ljavax/swing/text/Segment;)V
23: iload 4
aload 0
getfield javax.swing.text.FieldView.firstLineOffset:I
iadd
i2f
freturn
end local 4 end local 3 end local 2 24: StackMap locals:
StackMap stack:
aload 0
iload 1
invokespecial javax.swing.text.PlainView.getPreferredSpan:(I)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljavax/swing/text/FieldView;
0 25 1 axis I
2 24 2 buff Ljavax/swing/text/Segment;
3 24 3 doc Ljavax/swing/text/Document;
6 20 4 width I
22 24 4 width I
4 19 5 fm Ljava/awt/FontMetrics;
8 17 6 c Ljava/awt/Component;
Exception table:
from to target type
3 19 20 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
axis
public int getResizeWeight(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/FieldView;
0 3 1 axis I
MethodParameters:
Name Flags
axis
public java.awt.Shape modelToView(int, java.awt.Shape, javax.swing.text.Position$Bias);
descriptor: (ILjava/awt/Shape;Ljavax/swing/text/Position$Bias;)Ljava/awt/Shape;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
aload 0
aload 2
invokevirtual javax.swing.text.FieldView.adjustAllocation:(Ljava/awt/Shape;)Ljava/awt/Shape;
aload 3
invokespecial javax.swing.text.PlainView.modelToView:(ILjava/awt/Shape;Ljavax/swing/text/Position$Bias;)Ljava/awt/Shape;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/FieldView;
0 1 1 pos I
0 1 2 a Ljava/awt/Shape;
0 1 3 b Ljavax/swing/text/Position$Bias;
Exceptions:
throws javax.swing.text.BadLocationException
MethodParameters:
Name Flags
pos
a
b
public int viewToModel(float, float, java.awt.Shape, javax.swing.text.Position$Bias[]);
descriptor: (FFLjava/awt/Shape;[Ljavax/swing/text/Position$Bias;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
fload 1
fload 2
aload 0
aload 3
invokevirtual javax.swing.text.FieldView.adjustAllocation:(Ljava/awt/Shape;)Ljava/awt/Shape;
aload 4
invokespecial javax.swing.text.PlainView.viewToModel:(FFLjava/awt/Shape;[Ljavax/swing/text/Position$Bias;)I
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/FieldView;
0 1 1 fx F
0 1 2 fy F
0 1 3 a Ljava/awt/Shape;
0 1 4 bias [Ljavax/swing/text/Position$Bias;
MethodParameters:
Name Flags
fx
fy
a
bias
public void insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory);
descriptor: (Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 0
aload 2
invokevirtual javax.swing.text.FieldView.adjustAllocation:(Ljava/awt/Shape;)Ljava/awt/Shape;
aload 3
invokespecial javax.swing.text.PlainView.insertUpdate:(Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)V
1: aload 0
invokevirtual javax.swing.text.FieldView.updateVisibilityModel:()V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/FieldView;
0 3 1 changes Ljavax/swing/event/DocumentEvent;
0 3 2 a Ljava/awt/Shape;
0 3 3 f Ljavax/swing/text/ViewFactory;
MethodParameters:
Name Flags
changes
a
f
public void removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory);
descriptor: (Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 0
aload 2
invokevirtual javax.swing.text.FieldView.adjustAllocation:(Ljava/awt/Shape;)Ljava/awt/Shape;
aload 3
invokespecial javax.swing.text.PlainView.removeUpdate:(Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)V
1: aload 0
invokevirtual javax.swing.text.FieldView.updateVisibilityModel:()V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/FieldView;
0 3 1 changes Ljavax/swing/event/DocumentEvent;
0 3 2 a Ljava/awt/Shape;
0 3 3 f Ljavax/swing/text/ViewFactory;
MethodParameters:
Name Flags
changes
a
f
}
SourceFile: "FieldView.java"
InnerClasses:
public final Bias = javax.swing.text.Position$Bias of javax.swing.text.Position