public class javax.swing.undo.UndoManager extends javax.swing.undo.CompoundEdit implements javax.swing.event.UndoableEditListener
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.undo.UndoManager
super_class: javax.swing.undo.CompoundEdit
{
int indexOfNextAdd;
descriptor: I
flags: (0x0000)
int limit;
descriptor: I
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.undo.CompoundEdit.<init>:()V
1: aload 0
iconst_0
putfield javax.swing.undo.UndoManager.indexOfNextAdd:I
2: aload 0
bipush 100
putfield javax.swing.undo.UndoManager.limit:I
3: aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
aload 0
getfield javax.swing.undo.UndoManager.limit:I
invokevirtual java.util.Vector.ensureCapacity:(I)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/undo/UndoManager;
public synchronized int getLimit();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.limit:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/undo/UndoManager;
public synchronized void discardAllEdits();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: javax.swing.undo.UndoManager top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
astore 1
start local 1 2: aload 1
invokeinterface javax.swing.undo.UndoableEdit.die:()V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
5: aload 0
iconst_0
putfield javax.swing.undo.UndoManager.indexOfNextAdd:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/undo/UndoManager;
2 3 1 e Ljavax/swing/undo/UndoableEdit;
protected void trimForLimit();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.limit:I
iflt 17
1: aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
istore 1
start local 1 2: iload 1
aload 0
getfield javax.swing.undo.UndoManager.limit:I
if_icmple 17
3: aload 0
getfield javax.swing.undo.UndoManager.limit:I
iconst_2
idiv
istore 2
start local 2 4: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
iconst_1
isub
iload 2
isub
istore 3
start local 3 5: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
iconst_1
isub
iload 2
iadd
istore 4
start local 4 6: iload 4
iload 3
isub
iconst_1
iadd
aload 0
getfield javax.swing.undo.UndoManager.limit:I
if_icmple 8
7: iinc 3 1
8: StackMap locals: javax.swing.undo.UndoManager int int int int
StackMap stack:
iload 3
ifge 11
9: iload 4
iload 3
isub
istore 4
10: iconst_0
istore 3
11: StackMap locals:
StackMap stack:
iload 4
iload 1
if_icmplt 15
12: iload 1
iload 4
isub
iconst_1
isub
istore 5
start local 5 13: iload 4
iload 5
iadd
istore 4
14: iload 3
iload 5
iadd
istore 3
end local 5 15: StackMap locals:
StackMap stack:
aload 0
iload 4
iconst_1
iadd
iload 1
iconst_1
isub
invokevirtual javax.swing.undo.UndoManager.trimEdits:(II)V
16: aload 0
iconst_0
iload 3
iconst_1
isub
invokevirtual javax.swing.undo.UndoManager.trimEdits:(II)V
end local 4 end local 3 end local 2 end local 1 17: StackMap locals: javax.swing.undo.UndoManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljavax/swing/undo/UndoManager;
2 17 1 size I
4 17 2 halfLimit I
5 17 3 keepFrom I
6 17 4 keepTo I
13 15 5 delta I
protected void trimEdits(int, int);
descriptor: (II)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmpgt 13
1: iload 2
istore 3
start local 3 2: goto 7
3: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
iload 3
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
astore 4
start local 4 4: aload 4
invokeinterface javax.swing.undo.UndoableEdit.die:()V
5: aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
iload 3
invokevirtual java.util.Vector.removeElementAt:(I)V
end local 4 6: iinc 3 -1
StackMap locals:
StackMap stack:
7: iload 1
iload 3
if_icmple 3
end local 3 8: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
iload 2
if_icmple 11
9: aload 0
dup
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
iload 2
iload 1
isub
iconst_1
iadd
isub
putfield javax.swing.undo.UndoManager.indexOfNextAdd:I
10: goto 13
StackMap locals:
StackMap stack:
11: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
iload 1
if_icmplt 13
12: aload 0
iload 1
putfield javax.swing.undo.UndoManager.indexOfNextAdd:I
13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljavax/swing/undo/UndoManager;
0 14 1 from I
0 14 2 to I
2 8 3 i I
4 6 4 e Ljavax/swing/undo/UndoableEdit;
MethodParameters:
Name Flags
from
to
public synchronized void setLimit(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifne 1
new java.lang.RuntimeException
dup
ldc "Attempt to call UndoManager.setLimit() after UndoManager.end() has been called"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield javax.swing.undo.UndoManager.limit:I
2: aload 0
invokevirtual javax.swing.undo.UndoManager.trimForLimit:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/UndoManager;
0 4 1 l I
MethodParameters:
Name Flags
l
protected javax.swing.undo.UndoableEdit editToBeUndone();
descriptor: ()Ljavax/swing/undo/UndoableEdit;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
iinc 1 -1
iload 1
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
astore 2
start local 2 3: aload 2
invokeinterface javax.swing.undo.UndoableEdit.isSignificant:()Z
ifeq 5
4: aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
iload 1
ifgt 2
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/undo/UndoManager;
1 7 1 i I
3 5 2 edit Ljavax/swing/undo/UndoableEdit;
protected javax.swing.undo.UndoableEdit editToBeRedone();
descriptor: ()Ljavax/swing/undo/UndoableEdit;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
istore 1
start local 1 1: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
istore 2
start local 2 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
iload 2
iinc 2 1
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
astore 3
start local 3 4: aload 3
invokeinterface javax.swing.undo.UndoableEdit.isSignificant:()Z
ifeq 6
5: aload 3
areturn
end local 3 6: StackMap locals:
StackMap stack:
iload 2
iload 1
if_icmplt 3
7: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/undo/UndoManager;
1 8 1 count I
2 8 2 i I
4 6 3 edit Ljavax/swing/undo/UndoableEdit;
protected void undoTo(javax.swing.undo.UndoableEdit);
descriptor: (Ljavax/swing/undo/UndoableEdit;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
aload 0
dup
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
iconst_1
isub
dup_x1
putfield javax.swing.undo.UndoManager.indexOfNextAdd:I
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
astore 3
start local 3 3: aload 3
invokeinterface javax.swing.undo.UndoableEdit.undo:()V
4: aload 3
aload 1
if_acmpne 5
iconst_1
goto 6
StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 2
end local 3 7: StackMap locals:
StackMap stack:
iload 2
ifeq 2
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/undo/UndoManager;
0 9 1 edit Ljavax/swing/undo/UndoableEdit;
1 9 2 done Z
3 7 3 next Ljavax/swing/undo/UndoableEdit;
Exceptions:
throws javax.swing.undo.CannotUndoException
MethodParameters:
Name Flags
edit
protected void redoTo(javax.swing.undo.UndoableEdit);
descriptor: (Ljavax/swing/undo/UndoableEdit;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
aload 0
dup
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
dup_x1
iconst_1
iadd
putfield javax.swing.undo.UndoManager.indexOfNextAdd:I
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
astore 3
start local 3 3: aload 3
invokeinterface javax.swing.undo.UndoableEdit.redo:()V
4: aload 3
aload 1
if_acmpne 5
iconst_1
goto 6
StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 2
end local 3 7: StackMap locals:
StackMap stack:
iload 2
ifeq 2
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/undo/UndoManager;
0 9 1 edit Ljavax/swing/undo/UndoableEdit;
1 9 2 done Z
3 7 3 next Ljavax/swing/undo/UndoableEdit;
Exceptions:
throws javax.swing.undo.CannotRedoException
MethodParameters:
Name Flags
edit
public synchronized void undoOrRedo();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
if_icmpne 3
1: aload 0
invokevirtual javax.swing.undo.UndoManager.undo:()V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.undo.UndoManager.redo:()V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/undo/UndoManager;
Exceptions:
throws javax.swing.undo.CannotRedoException, javax.swing.undo.CannotUndoException
public synchronized boolean canUndoOrRedo();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
if_icmpne 2
1: aload 0
invokevirtual javax.swing.undo.UndoManager.canUndo:()Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.undo.UndoManager.canRedo:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/UndoManager;
public synchronized void undo();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifeq 6
1: aload 0
invokevirtual javax.swing.undo.UndoManager.editToBeUndone:()Ljavax/swing/undo/UndoableEdit;
astore 1
start local 1 2: aload 1
ifnonnull 4
3: new javax.swing.undo.CannotUndoException
dup
invokespecial javax.swing.undo.CannotUndoException.<init>:()V
athrow
4: StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
aload 0
aload 1
invokevirtual javax.swing.undo.UndoManager.undoTo:(Ljavax/swing/undo/UndoableEdit;)V
end local 1 5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.swing.undo.CompoundEdit.undo:()V
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/undo/UndoManager;
2 5 1 edit Ljavax/swing/undo/UndoableEdit;
Exceptions:
throws javax.swing.undo.CannotUndoException
public synchronized boolean canUndo();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifeq 4
1: aload 0
invokevirtual javax.swing.undo.UndoManager.editToBeUndone:()Ljavax/swing/undo/UndoableEdit;
astore 1
start local 1 2: aload 1
ifnull 3
aload 1
invokeinterface javax.swing.undo.UndoableEdit.canUndo:()Z
ifeq 3
iconst_1
ireturn
StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
3: iconst_0
ireturn
end local 1 4: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.swing.undo.CompoundEdit.canUndo:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/undo/UndoManager;
2 4 1 edit Ljavax/swing/undo/UndoableEdit;
public synchronized void redo();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifeq 6
1: aload 0
invokevirtual javax.swing.undo.UndoManager.editToBeRedone:()Ljavax/swing/undo/UndoableEdit;
astore 1
start local 1 2: aload 1
ifnonnull 4
3: new javax.swing.undo.CannotRedoException
dup
invokespecial javax.swing.undo.CannotRedoException.<init>:()V
athrow
4: StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
aload 0
aload 1
invokevirtual javax.swing.undo.UndoManager.redoTo:(Ljavax/swing/undo/UndoableEdit;)V
end local 1 5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.swing.undo.CompoundEdit.redo:()V
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/undo/UndoManager;
2 5 1 edit Ljavax/swing/undo/UndoableEdit;
Exceptions:
throws javax.swing.undo.CannotRedoException
public synchronized boolean canRedo();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifeq 4
1: aload 0
invokevirtual javax.swing.undo.UndoManager.editToBeRedone:()Ljavax/swing/undo/UndoableEdit;
astore 1
start local 1 2: aload 1
ifnull 3
aload 1
invokeinterface javax.swing.undo.UndoableEdit.canRedo:()Z
ifeq 3
iconst_1
ireturn
StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
3: iconst_0
ireturn
end local 1 4: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.swing.undo.CompoundEdit.canRedo:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/undo/UndoManager;
2 4 1 edit Ljavax/swing/undo/UndoableEdit;
public synchronized boolean addEdit(javax.swing.undo.UndoableEdit);
descriptor: (Ljavax/swing/undo/UndoableEdit;)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
iconst_1
isub
invokevirtual javax.swing.undo.UndoManager.trimEdits:(II)V
1: aload 0
aload 1
invokespecial javax.swing.undo.CompoundEdit.addEdit:(Ljavax/swing/undo/UndoableEdit;)Z
istore 2
start local 2 2: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifeq 4
3: iconst_1
istore 2
4: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
putfield javax.swing.undo.UndoManager.indexOfNextAdd:I
5: aload 0
invokevirtual javax.swing.undo.UndoManager.trimForLimit:()V
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/undo/UndoManager;
0 7 1 anEdit Ljavax/swing/undo/UndoableEdit;
2 7 2 retVal Z
MethodParameters:
Name Flags
anEdit
public synchronized void end();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.undo.CompoundEdit.end:()V
1: aload 0
aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
iconst_1
isub
invokevirtual javax.swing.undo.UndoManager.trimEdits:(II)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/UndoManager;
public synchronized java.lang.String getUndoOrRedoPresentationName();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
aload 0
getfield javax.swing.undo.UndoManager.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
if_icmpne 2
1: aload 0
invokevirtual javax.swing.undo.UndoManager.getUndoPresentationName:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.undo.UndoManager.getRedoPresentationName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/UndoManager;
public synchronized java.lang.String getUndoPresentationName();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifeq 4
1: aload 0
invokevirtual javax.swing.undo.UndoManager.canUndo:()Z
ifeq 3
2: aload 0
invokevirtual javax.swing.undo.UndoManager.editToBeUndone:()Ljavax/swing/undo/UndoableEdit;
invokeinterface javax.swing.undo.UndoableEdit.getUndoPresentationName:()Ljava/lang/String;
areturn
3: StackMap locals:
StackMap stack:
ldc "AbstractUndoableEdit.undoText"
invokestatic javax.swing.UIManager.getString:(Ljava/lang/Object;)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.swing.undo.CompoundEdit.getUndoPresentationName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/undo/UndoManager;
public synchronized java.lang.String getRedoPresentationName();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.UndoManager.inProgress:Z
ifeq 4
1: aload 0
invokevirtual javax.swing.undo.UndoManager.canRedo:()Z
ifeq 3
2: aload 0
invokevirtual javax.swing.undo.UndoManager.editToBeRedone:()Ljavax/swing/undo/UndoableEdit;
invokeinterface javax.swing.undo.UndoableEdit.getRedoPresentationName:()Ljava/lang/String;
areturn
3: StackMap locals:
StackMap stack:
ldc "AbstractUndoableEdit.redoText"
invokestatic javax.swing.UIManager.getString:(Ljava/lang/Object;)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.swing.undo.CompoundEdit.getRedoPresentationName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/undo/UndoManager;
public void undoableEditHappened(javax.swing.event.UndoableEditEvent);
descriptor: (Ljavax/swing/event/UndoableEditEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.event.UndoableEditEvent.getEdit:()Ljavax/swing/undo/UndoableEdit;
invokevirtual javax.swing.undo.UndoManager.addEdit:(Ljavax/swing/undo/UndoableEdit;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/undo/UndoManager;
0 2 1 e Ljavax/swing/event/UndoableEditEvent;
MethodParameters:
Name Flags
e
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial javax.swing.undo.CompoundEdit.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " limit: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.swing.undo.UndoManager.limit:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
1: ldc " indexOfNextAdd: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.swing.undo.UndoManager.indexOfNextAdd:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/UndoManager;
}
SourceFile: "UndoManager.java"