class javax.swing.text.GapContent$InsertUndo extends javax.swing.undo.AbstractUndoableEdit
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.GapContent$InsertUndo
super_class: javax.swing.undo.AbstractUndoableEdit
{
protected int offset;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int length;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected java.lang.String string;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.util.Vector posRefs;
descriptor: Ljava/util/Vector;
flags: (0x0004) ACC_PROTECTED
final javax.swing.text.GapContent this$0;
descriptor: Ljavax/swing/text/GapContent;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
protected void <init>(javax.swing.text.GapContent, int, int);
descriptor: (Ljavax/swing/text/GapContent;II)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=4
start local 0 // javax.swing.text.GapContent$InsertUndo this
start local 2 // int offset
start local 3 // int length
0: .line 859
aload 0 /* this */
aload 1
putfield javax.swing.text.GapContent$InsertUndo.this$0:Ljavax/swing/text/GapContent;
1: .line 860
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.<init>:()V
2: .line 861
aload 0 /* this */
iload 2 /* offset */
putfield javax.swing.text.GapContent$InsertUndo.offset:I
3: .line 862
aload 0 /* this */
iload 3 /* length */
putfield javax.swing.text.GapContent$InsertUndo.length:I
4: .line 863
return
end local 3 // int length
end local 2 // int offset
end local 0 // javax.swing.text.GapContent$InsertUndo this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/GapContent$InsertUndo;
0 5 2 offset I
0 5 3 length I
MethodParameters:
Name Flags
this$0 final
offset
length
public void undo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 // javax.swing.text.GapContent$InsertUndo this
0: .line 866
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.undo:()V
1: .line 869
aload 0 /* this */
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.this$0:Ljavax/swing/text/GapContent;
aconst_null
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.length:I
invokevirtual javax.swing.text.GapContent.getPositionsInRange:(Ljava/util/Vector;II)Ljava/util/Vector;
putfield javax.swing.text.GapContent$InsertUndo.posRefs:Ljava/util/Vector;
2: .line 870
aload 0 /* this */
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.this$0:Ljavax/swing/text/GapContent;
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.length:I
invokevirtual javax.swing.text.GapContent.getString:(II)Ljava/lang/String;
putfield javax.swing.text.GapContent$InsertUndo.string:Ljava/lang/String;
3: .line 871
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.this$0:Ljavax/swing/text/GapContent;
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.length:I
invokevirtual javax.swing.text.GapContent.remove:(II)Ljavax/swing/undo/UndoableEdit;
pop
4: .line 872
goto 7
StackMap locals:
StackMap stack: javax.swing.text.BadLocationException
5: pop
6: .line 873
new javax.swing.undo.CannotUndoException
dup
invokespecial javax.swing.undo.CannotUndoException.<init>:()V
athrow
7: .line 875
StackMap locals:
StackMap stack:
return
end local 0 // javax.swing.text.GapContent$InsertUndo this
LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/text/GapContent$InsertUndo;
Exception table:
from to target type
1 4 5 Class javax.swing.text.BadLocationException
Exceptions:
throws javax.swing.undo.CannotUndoException
public void redo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 // javax.swing.text.GapContent$InsertUndo this
0: .line 878
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.redo:()V
1: .line 880
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.this$0:Ljavax/swing/text/GapContent;
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.string:Ljava/lang/String;
invokevirtual javax.swing.text.GapContent.insertString:(ILjava/lang/String;)Ljavax/swing/undo/UndoableEdit;
pop
2: .line 881
aload 0 /* this */
aconst_null
putfield javax.swing.text.GapContent$InsertUndo.string:Ljava/lang/String;
3: .line 883
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.posRefs:Ljava/util/Vector;
ifnull 9
4: .line 884
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.this$0:Ljavax/swing/text/GapContent;
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.posRefs:Ljava/util/Vector;
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.GapContent$InsertUndo.length:I
invokevirtual javax.swing.text.GapContent.updateUndoPositions:(Ljava/util/Vector;II)V
5: .line 885
aload 0 /* this */
aconst_null
putfield javax.swing.text.GapContent$InsertUndo.posRefs:Ljava/util/Vector;
6: .line 887
goto 9
StackMap locals:
StackMap stack: javax.swing.text.BadLocationException
7: pop
8: .line 888
new javax.swing.undo.CannotRedoException
dup
invokespecial javax.swing.undo.CannotRedoException.<init>:()V
athrow
9: .line 890
StackMap locals:
StackMap stack:
return
end local 0 // javax.swing.text.GapContent$InsertUndo this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/text/GapContent$InsertUndo;
Exception table:
from to target type
1 6 7 Class javax.swing.text.BadLocationException
Exceptions:
throws javax.swing.undo.CannotRedoException
}
SourceFile: "GapContent.java"
NestHost: javax.swing.text.GapContent
InnerClasses:
InsertUndo = javax.swing.text.GapContent$InsertUndo of javax.swing.text.GapContent