public class javax.swing.text.ZoneView extends javax.swing.text.BoxView
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.ZoneView
super_class: javax.swing.text.BoxView
{
int maxZoneSize;
descriptor: I
flags: (0x0000)
int maxZonesLoaded;
descriptor: I
flags: (0x0000)
java.util.Vector<javax.swing.text.View> loadedZones;
descriptor: Ljava/util/Vector;
flags: (0x0000)
Signature: Ljava/util/Vector<Ljavax/swing/text/View;>;
public void <init>(javax.swing.text.Element, int);
descriptor: (Ljavax/swing/text/Element;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokespecial javax.swing.text.BoxView.<init>:(Ljavax/swing/text/Element;I)V
1: aload 0
sipush 8192
putfield javax.swing.text.ZoneView.maxZoneSize:I
2: aload 0
iconst_3
putfield javax.swing.text.ZoneView.maxZonesLoaded:I
3: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield javax.swing.text.ZoneView.loadedZones:Ljava/util/Vector;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/ZoneView;
0 5 1 elem Ljavax/swing/text/Element;
0 5 2 axis I
MethodParameters:
Name Flags
elem
axis
public int getMaximumZoneSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.ZoneView.maxZoneSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/ZoneView;
public void setMaximumZoneSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield javax.swing.text.ZoneView.maxZoneSize:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/ZoneView;
0 2 1 size I
MethodParameters:
Name Flags
size
public int getMaxZonesLoaded();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.ZoneView.maxZonesLoaded:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/ZoneView;
public void setMaxZonesLoaded(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
if_icmpge 2
1: new java.lang.IllegalArgumentException
dup
ldc "ZoneView.setMaxZonesLoaded must be greater than 0."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield javax.swing.text.ZoneView.maxZonesLoaded:I
3: aload 0
invokevirtual javax.swing.text.ZoneView.unloadOldZones:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/ZoneView;
0 5 1 mzl I
MethodParameters:
Name Flags
mzl
protected void zoneWasLoaded(javax.swing.text.View);
descriptor: (Ljavax/swing/text/View;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.ZoneView.loadedZones:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
1: aload 0
invokevirtual javax.swing.text.ZoneView.unloadOldZones:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/ZoneView;
0 3 1 zone Ljavax/swing/text/View;
MethodParameters:
Name Flags
zone
void unloadOldZones();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 4
1: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ZoneView.loadedZones:Ljava/util/Vector;
iconst_0
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.text.View
astore 1
start local 1 2: aload 0
getfield javax.swing.text.ZoneView.loadedZones:Ljava/util/Vector;
iconst_0
invokevirtual java.util.Vector.removeElementAt:(I)V
3: aload 0
aload 1
invokevirtual javax.swing.text.ZoneView.unloadZone:(Ljavax/swing/text/View;)V
end local 1 4: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ZoneView.loadedZones:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
aload 0
invokevirtual javax.swing.text.ZoneView.getMaxZonesLoaded:()I
if_icmpgt 1
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/text/ZoneView;
2 4 1 zone Ljavax/swing/text/View;
protected void unloadZone(javax.swing.text.View);
descriptor: (Ljavax/swing/text/View;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.text.View.removeAll:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/ZoneView;
0 2 1 zone Ljavax/swing/text/View;
MethodParameters:
Name Flags
zone
protected boolean isZoneLoaded(javax.swing.text.View);
descriptor: (Ljavax/swing/text/View;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.text.View.getViewCount:()I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/ZoneView;
0 2 1 zone Ljavax/swing/text/View;
MethodParameters:
Name Flags
zone
protected javax.swing.text.View createZone(int, int);
descriptor: (II)Ljavax/swing/text/View;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javax.swing.text.ZoneView.getDocument:()Ljavax/swing/text/Document;
astore 3
start local 3 1: new javax.swing.text.ZoneView$Zone
dup
aload 0
aload 0
invokevirtual javax.swing.text.ZoneView.getElement:()Ljavax/swing/text/Element;
2: aload 3
iload 1
invokeinterface javax.swing.text.Document.createPosition:(I)Ljavax/swing/text/Position;
3: aload 3
iload 2
invokeinterface javax.swing.text.Document.createPosition:(I)Ljavax/swing/text/Position;
4: invokespecial javax.swing.text.ZoneView$Zone.<init>:(Ljavax/swing/text/ZoneView;Ljavax/swing/text/Element;Ljavax/swing/text/Position;Ljavax/swing/text/Position;)V
astore 4
start local 4 5: goto 8
end local 4 StackMap locals: javax.swing.text.ZoneView int int javax.swing.text.Document
StackMap stack: javax.swing.text.BadLocationException
6: astore 5
start local 5 7: new javax.swing.text.StateInvariantError
dup
aload 5
invokevirtual javax.swing.text.BadLocationException.getMessage:()Ljava/lang/String;
invokespecial javax.swing.text.StateInvariantError.<init>:(Ljava/lang/String;)V
athrow
end local 5 start local 4 8: StackMap locals: javax.swing.text.View
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/text/ZoneView;
0 9 1 p0 I
0 9 2 p1 I
1 9 3 doc Ljavax/swing/text/Document;
5 6 4 zone Ljavax/swing/text/View;
8 9 4 zone Ljavax/swing/text/View;
7 8 5 ble Ljavax/swing/text/BadLocationException;
Exception table:
from to target type
1 5 6 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
p0
p1
protected void loadChildren(javax.swing.text.ViewFactory);
descriptor: (Ljavax/swing/text/ViewFactory;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.text.ZoneView.getDocument:()Ljavax/swing/text/Document;
pop
1: aload 0
invokevirtual javax.swing.text.ZoneView.getStartOffset:()I
istore 2
start local 2 2: aload 0
invokevirtual javax.swing.text.ZoneView.getEndOffset:()I
istore 3
start local 3 3: aload 0
aload 0
iload 2
iload 3
invokevirtual javax.swing.text.ZoneView.createZone:(II)Ljavax/swing/text/View;
invokevirtual javax.swing.text.ZoneView.append:(Ljavax/swing/text/View;)V
4: aload 0
iload 2
iload 3
iload 2
isub
invokevirtual javax.swing.text.ZoneView.handleInsert:(II)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/text/ZoneView;
0 6 1 f Ljavax/swing/text/ViewFactory;
2 6 2 offs0 I
3 6 3 offs1 I
MethodParameters:
Name Flags
f
protected int getViewIndexAtPosition(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.text.ZoneView.getViewCount:()I
istore 2
start local 2 1: iload 1
aload 0
invokevirtual javax.swing.text.ZoneView.getEndOffset:()I
if_icmpne 3
2: iload 2
iconst_1
isub
ireturn
3: StackMap locals: int
StackMap stack:
iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: int
StackMap stack:
aload 0
iload 3
invokevirtual javax.swing.text.ZoneView.getView:(I)Ljavax/swing/text/View;
astore 4
start local 4 6: iload 1
aload 4
invokevirtual javax.swing.text.View.getStartOffset:()I
if_icmplt 9
7: iload 1
aload 4
invokevirtual javax.swing.text.View.getEndOffset:()I
if_icmpge 9
8: iload 3
ireturn
end local 4 9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
iload 2
if_icmplt 5
end local 3 11: iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/text/ZoneView;
0 12 1 pos I
1 12 2 n I
4 11 3 i I
6 9 4 v Ljavax/swing/text/View;
MethodParameters:
Name Flags
pos
void handleInsert(int, int);
descriptor: (II)V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
getstatic javax.swing.text.Position$Bias.Forward:Ljavax/swing/text/Position$Bias;
invokevirtual javax.swing.text.ZoneView.getViewIndex:(ILjavax/swing/text/Position$Bias;)I
istore 3
start local 3 1: aload 0
iload 3
invokevirtual javax.swing.text.ZoneView.getView:(I)Ljavax/swing/text/View;
astore 4
start local 4 2: aload 4
invokevirtual javax.swing.text.View.getStartOffset:()I
istore 5
start local 5 3: aload 4
invokevirtual javax.swing.text.View.getEndOffset:()I
istore 6
start local 6 4: iload 6
iload 5
isub
aload 0
getfield javax.swing.text.ZoneView.maxZoneSize:I
if_icmple 6
5: aload 0
iload 3
iload 5
iload 6
invokevirtual javax.swing.text.ZoneView.splitZone:(III)V
6: StackMap locals: javax.swing.text.ZoneView int int int javax.swing.text.View int int
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 7 0 this Ljavax/swing/text/ZoneView;
0 7 1 pos I
0 7 2 length I
1 7 3 index I
2 7 4 v Ljavax/swing/text/View;
3 7 5 offs0 I
4 7 6 offs1 I
MethodParameters:
Name Flags
pos
length
void handleRemove(int, int);
descriptor: (II)V
flags: (0x0000)
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/ZoneView;
0 1 1 pos I
0 1 2 length I
MethodParameters:
Name Flags
pos
length
void splitZone(int, int, int);
descriptor: (III)V
flags: (0x0000)
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.swing.text.ZoneView.getElement:()Ljavax/swing/text/Element;
astore 4
start local 4 1: aload 4
invokeinterface javax.swing.text.Element.getDocument:()Ljavax/swing/text/Document;
pop
2: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 5
start local 5 3: iload 2
istore 6
start local 6 4: StackMap locals: javax.swing.text.Element java.util.Vector int
StackMap stack:
iload 6
istore 2
5: aload 0
iload 2
invokevirtual javax.swing.text.ZoneView.getDesiredZoneEnd:(I)I
iload 3
invokestatic java.lang.Math.min:(II)I
istore 6
6: aload 5
aload 0
iload 2
iload 6
invokevirtual javax.swing.text.ZoneView.createZone:(II)Ljavax/swing/text/View;
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
7: iload 6
iload 3
8: if_icmplt 4
9: aload 0
iload 1
invokevirtual javax.swing.text.ZoneView.getView:(I)Ljavax/swing/text/View;
pop
10: aload 5
invokevirtual java.util.Vector.size:()I
anewarray javax.swing.text.View
astore 7
start local 7 11: aload 5
aload 7
invokevirtual java.util.Vector.copyInto:([Ljava/lang/Object;)V
12: aload 0
iload 1
iconst_1
aload 7
invokevirtual javax.swing.text.ZoneView.replace:(II[Ljavax/swing/text/View;)V
13: return
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 14 0 this Ljavax/swing/text/ZoneView;
0 14 1 index I
0 14 2 offs0 I
0 14 3 offs1 I
1 14 4 elem Ljavax/swing/text/Element;
3 14 5 zones Ljava/util/Vector<Ljavax/swing/text/View;>;
4 14 6 offs I
11 14 7 newZones [Ljavax/swing/text/View;
MethodParameters:
Name Flags
index
offs0
offs1
int getDesiredZoneEnd(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.text.ZoneView.getElement:()Ljavax/swing/text/Element;
astore 2
start local 2 1: aload 2
iload 1
aload 0
getfield javax.swing.text.ZoneView.maxZoneSize:I
iconst_2
idiv
iadd
invokeinterface javax.swing.text.Element.getElementIndex:(I)I
istore 3
start local 3 2: aload 2
iload 3
invokeinterface javax.swing.text.Element.getElement:(I)Ljavax/swing/text/Element;
astore 4
start local 4 3: aload 4
invokeinterface javax.swing.text.Element.getStartOffset:()I
istore 5
start local 5 4: aload 4
invokeinterface javax.swing.text.Element.getEndOffset:()I
istore 6
start local 6 5: iload 6
iload 1
isub
aload 0
getfield javax.swing.text.ZoneView.maxZoneSize:I
if_icmple 8
6: iload 5
iload 1
if_icmple 8
7: iload 5
ireturn
8: StackMap locals: javax.swing.text.ZoneView int javax.swing.text.Element int javax.swing.text.Element int int
StackMap stack:
iload 6
ireturn
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 9 0 this Ljavax/swing/text/ZoneView;
0 9 1 pos I
1 9 2 elem Ljavax/swing/text/Element;
2 9 3 index I
3 9 4 child Ljavax/swing/text/Element;
4 9 5 offs0 I
5 9 6 offs1 I
MethodParameters:
Name Flags
pos
protected boolean updateChildren(javax.swing.event.DocumentEvent$ElementChange, javax.swing.event.DocumentEvent, javax.swing.text.ViewFactory);
descriptor: (Ljavax/swing/event/DocumentEvent$ElementChange;Ljavax/swing/event/DocumentEvent;Ljavax/swing/text/ViewFactory;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
ireturn
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/ZoneView;
0 1 1 ec Ljavax/swing/event/DocumentEvent$ElementChange;
0 1 2 e Ljavax/swing/event/DocumentEvent;
0 1 3 f Ljavax/swing/text/ViewFactory;
MethodParameters:
Name Flags
ec
e
f
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
invokeinterface javax.swing.event.DocumentEvent.getOffset:()I
aload 1
invokeinterface javax.swing.event.DocumentEvent.getLength:()I
invokevirtual javax.swing.text.ZoneView.handleInsert:(II)V
1: aload 0
aload 1
aload 2
aload 3
invokespecial javax.swing.text.BoxView.insertUpdate:(Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)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/ZoneView;
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
invokeinterface javax.swing.event.DocumentEvent.getOffset:()I
aload 1
invokeinterface javax.swing.event.DocumentEvent.getLength:()I
invokevirtual javax.swing.text.ZoneView.handleRemove:(II)V
1: aload 0
aload 1
aload 2
aload 3
invokespecial javax.swing.text.BoxView.removeUpdate:(Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)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/ZoneView;
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: "ZoneView.java"
NestMembers:
javax.swing.text.ZoneView$Zone
InnerClasses:
public abstract ElementChange = javax.swing.event.DocumentEvent$ElementChange of javax.swing.event.DocumentEvent
public final Bias = javax.swing.text.Position$Bias of javax.swing.text.Position
Zone = javax.swing.text.ZoneView$Zone of javax.swing.text.ZoneView