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 posRefs;
descriptor: Ljava/util/Vector;
flags: (0x0004) ACC_PROTECTED
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 447
aload 0 /* this */
aload 1
putfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
1: .line 448
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.<init>:()V
2: .line 449
aload 0 /* this */
iload 2 /* offset */
putfield javax.swing.text.StringContent$RemoveUndo.offset:I
3: .line 450
aload 0 /* this */
aload 3 /* string */
putfield javax.swing.text.StringContent$RemoveUndo.string:Ljava/lang/String;
4: .line 451
aload 0 /* this */
aload 3 /* string */
invokevirtual java.lang.String.length:()I
putfield javax.swing.text.StringContent$RemoveUndo.length:I
5: .line 452
aload 1
getfield javax.swing.text.StringContent.marks:Ljava/util/Vector;
ifnull 7
6: .line 453
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 454
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 457
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.undo:()V
1: .line 459
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
dup
astore 1
monitorenter
2: .line 460
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 462
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.posRefs:Ljava/util/Vector;
ifnull 6
4: .line 463
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 464
aload 0 /* this */
aconst_null
putfield javax.swing.text.StringContent$RemoveUndo.posRefs:Ljava/util/Vector;
6: .line 466
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 459
aload 1
monitorexit
8: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: .line 468
StackMap locals: javax.swing.text.StringContent$RemoveUndo
StackMap stack: javax.swing.text.BadLocationException
pop
12: .line 469
new javax.swing.undo.CannotUndoException
dup
invokespecial javax.swing.undo.CannotUndoException.<init>:()V
athrow
13: .line 471
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 474
aload 0 /* this */
invokespecial javax.swing.undo.AbstractUndoableEdit.redo:()V
1: .line 476
aload 0 /* this */
getfield javax.swing.text.StringContent$RemoveUndo.this$0:Ljavax/swing/text/StringContent;
dup
astore 1
monitorenter
2: .line 477
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 479
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 480
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 481
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 476
aload 1
monitorexit
7: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: .line 483
StackMap locals: javax.swing.text.StringContent$RemoveUndo
StackMap stack: javax.swing.text.BadLocationException
pop
11: .line 484
new javax.swing.undo.CannotRedoException
dup
invokespecial javax.swing.undo.CannotRedoException.<init>:()V
athrow
12: .line 486
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