class javax.swing.text.StringContent$RemoveUndo extends javax.swing.undo.AbstractUndoableEdit
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.StringContent$RemoveUndo
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<javax.swing.text.StringContent$UndoPosRef> posRefs;
descriptor: Ljava/util/Vector;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Vector<Ljavax/swing/text/StringContent$UndoPosRef;>;
final javax.swing.text.StringContent this$0;
descriptor: Ljavax/swing/text/StringContent;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
protected void <init>(javax.swing.text.StringContent, int, java.lang.String);
descriptor: (Ljavax/swing/text/StringContent;ILjava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=4
start local 0 // javax.swing.text.StringContent$RemoveUndo this
start local 2 // int offset
start local 3 // java.lang.String string
0: .line 453
aload 0 /* this */
aload 1
putfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
1: .line 454
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.<init>:()V
2: .line 455
aload 0 /* this */
iload 2 /* offset */
putfield javax.swing.text.StringContent$RemoveUndo.offset:I
3: .line 456
aload 0 /* this */
aload 3 /* string */
putfield javax.swing.text.StringContent$RemoveUndo.string:Ljava/lang/String;
4: .line 457
aload 0 /* this */
aload 3 /* string */
invokevirtual java.lang.String.length:()I
putfield javax.swing.text.StringContent$RemoveUndo.length:I
5: .line 458
aload 1
getfield javax.swing.text.StringContent.marks:Ljava/util/Vector;
ifnull 7
6: .line 459
aload 0 /* this */
aload 1
aconst_null
iload 2 /* offset */
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.length:I
invokevirtual javax.swing.text.StringContent.getPositionsInRange:(Ljava/util/Vector;II)Ljava/util/Vector;
putfield javax.swing.text.StringContent$RemoveUndo.posRefs:Ljava/util/Vector;
7: .line 460
StackMap locals: javax.swing.text.StringContent$RemoveUndo javax.swing.text.StringContent int java.lang.String
StackMap stack:
return
end local 3 // java.lang.String string
end local 2 // int offset
end local 0 // javax.swing.text.StringContent$RemoveUndo this
LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/text/StringContent$RemoveUndo;
0 8 2 offset I
0 8 3 string Ljava/lang/String;
MethodParameters:
Name Flags
this$0 final
offset
string
public void undo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 // javax.swing.text.StringContent$RemoveUndo this
0: .line 463
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.undo:()V
1: .line 465
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
dup
astore 1
monitorenter
2: .line 466
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.string:Ljava/lang/String;
invokevirtual javax.swing.text.StringContent.insertString:(ILjava/lang/String;)Ljavax/swing/undo/UndoableEdit;
pop
3: .line 468
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.posRefs:Ljava/util/Vector;
ifnull 6
4: .line 469
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.posRefs:Ljava/util/Vector;
invokevirtual javax.swing.text.StringContent.updateUndoPositions:(Ljava/util/Vector;)V
5: .line 470
aload 0 /* this */
aconst_null
putfield javax.swing.text.StringContent$RemoveUndo.posRefs:Ljava/util/Vector;
6: .line 472
StackMap locals: javax.swing.text.StringContent
StackMap stack:
aload 0 /* this */
aconst_null
putfield javax.swing.text.StringContent$RemoveUndo.string:Ljava/lang/String;
7: .line 465
aload 1
monitorexit
8: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: .line 474
StackMap locals: javax.swing.text.StringContent$RemoveUndo
StackMap stack: javax.swing.text.BadLocationException
pop
12: .line 475
new javax.swing.undo.CannotUndoException
dup
invokespecial javax.swing.undo.CannotUndoException.<init>:()V
athrow
13: .line 477
StackMap locals:
StackMap stack:
return
end local 0 // javax.swing.text.StringContent$RemoveUndo this
LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljavax/swing/text/StringContent$RemoveUndo;
Exception table:
from to target type
2 8 9 any
9 10 9 any
1 11 11 Class javax.swing.text.BadLocationException
Exceptions:
throws javax.swing.undo.CannotUndoException
public void redo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 // javax.swing.text.StringContent$RemoveUndo this
0: .line 481
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.redo:()V
1: .line 483
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
dup
astore 1
monitorenter
2: .line 484
aload 0 /* this */
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.length:I
invokevirtual javax.swing.text.StringContent.getString:(II)Ljava/lang/String;
putfield javax.swing.text.StringContent$RemoveUndo.string:Ljava/lang/String;
3: .line 486
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
getfield javax.swing.text.StringContent.marks:Ljava/util/Vector;
ifnull 5
4: .line 487
aload 0 /* this */
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
aconst_null
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.length:I
invokevirtual javax.swing.text.StringContent.getPositionsInRange:(Ljava/util/Vector;II)Ljava/util/Vector;
putfield javax.swing.text.StringContent$RemoveUndo.posRefs:Ljava/util/Vector;
5: .line 488
StackMap locals: javax.swing.text.StringContent
StackMap stack:
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.offset:I
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.length:I
invokevirtual javax.swing.text.StringContent.remove:(II)Ljavax/swing/undo/UndoableEdit;
pop
6: .line 483
aload 1
monitorexit
7: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: .line 490
StackMap locals: javax.swing.text.StringContent$RemoveUndo
StackMap stack: javax.swing.text.BadLocationException
pop
11: .line 491
new javax.swing.undo.CannotRedoException
dup
invokespecial javax.swing.undo.CannotRedoException.<init>:()V
athrow
12: .line 493
StackMap locals:
StackMap stack:
return
end local 0 // javax.swing.text.StringContent$RemoveUndo this
LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/swing/text/StringContent$RemoveUndo;
Exception table:
from to target type
2 7 8 any
8 9 8 any
1 10 10 Class javax.swing.text.BadLocationException
Exceptions:
throws javax.swing.undo.CannotRedoException
}
SourceFile: "StringContent.java"
NestHost: javax.swing.text.StringContent
InnerClasses:
RemoveUndo = javax.swing.text.StringContent$RemoveUndo of javax.swing.text.StringContent
final UndoPosRef = javax.swing.text.StringContent$UndoPosRef of javax.swing.text.StringContent