public class javax.swing.undo.StateEdit extends javax.swing.undo.AbstractUndoableEdit
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.undo.StateEdit
super_class: javax.swing.undo.AbstractUndoableEdit
{
protected static final java.lang.String RCSID;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "$Id: StateEdit.java,v 1.6 1997/10/01 20:05:51 sandipc Exp $"
protected javax.swing.undo.StateEditable object;
descriptor: Ljavax/swing/undo/StateEditable;
flags: (0x0004) ACC_PROTECTED
protected java.util.Hashtable<java.lang.Object, java.lang.Object> preState;
descriptor: Ljava/util/Hashtable;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Hashtable<Ljava/lang/Object;Ljava/lang/Object;>;
protected java.util.Hashtable<java.lang.Object, java.lang.Object> postState;
descriptor: Ljava/util/Hashtable;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Hashtable<Ljava/lang/Object;Ljava/lang/Object;>;
protected java.lang.String undoRedoName;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
public void <init>(javax.swing.undo.StateEditable);
descriptor: (Ljavax/swing/undo/StateEditable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.<init>:()V
1: aload 0
aload 1
aconst_null
invokevirtual javax.swing.undo.StateEdit.init:(Ljavax/swing/undo/StateEditable;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/StateEdit;
0 3 1 anObject Ljavax/swing/undo/StateEditable;
MethodParameters:
Name Flags
anObject
public void <init>(javax.swing.undo.StateEditable, java.lang.String);
descriptor: (Ljavax/swing/undo/StateEditable;Ljava/lang/String;)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
invokespecial javax.swing.undo.AbstractUndoableEdit.<init>:()V
1: aload 0
aload 1
aload 2
invokevirtual javax.swing.undo.StateEdit.init:(Ljavax/swing/undo/StateEditable;Ljava/lang/String;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/StateEdit;
0 3 1 anObject Ljavax/swing/undo/StateEditable;
0 3 2 name Ljava/lang/String;
MethodParameters:
Name Flags
anObject
name
protected void init(javax.swing.undo.StateEditable, java.lang.String);
descriptor: (Ljavax/swing/undo/StateEditable;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield javax.swing.undo.StateEdit.object:Ljavax/swing/undo/StateEditable;
1: aload 0
new java.util.Hashtable
dup
bipush 11
invokespecial java.util.Hashtable.<init>:(I)V
putfield javax.swing.undo.StateEdit.preState:Ljava/util/Hashtable;
2: aload 0
getfield javax.swing.undo.StateEdit.object:Ljavax/swing/undo/StateEditable;
aload 0
getfield javax.swing.undo.StateEdit.preState:Ljava/util/Hashtable;
invokeinterface javax.swing.undo.StateEditable.storeState:(Ljava/util/Hashtable;)V
3: aload 0
aconst_null
putfield javax.swing.undo.StateEdit.postState:Ljava/util/Hashtable;
4: aload 0
aload 2
putfield javax.swing.undo.StateEdit.undoRedoName:Ljava/lang/String;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/undo/StateEdit;
0 6 1 anObject Ljavax/swing/undo/StateEditable;
0 6 2 name Ljava/lang/String;
MethodParameters:
Name Flags
anObject
name
public void end();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.util.Hashtable
dup
bipush 11
invokespecial java.util.Hashtable.<init>:(I)V
putfield javax.swing.undo.StateEdit.postState:Ljava/util/Hashtable;
1: aload 0
getfield javax.swing.undo.StateEdit.object:Ljavax/swing/undo/StateEditable;
aload 0
getfield javax.swing.undo.StateEdit.postState:Ljava/util/Hashtable;
invokeinterface javax.swing.undo.StateEditable.storeState:(Ljava/util/Hashtable;)V
2: aload 0
invokevirtual javax.swing.undo.StateEdit.removeRedundantState:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/StateEdit;
public void undo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.undo:()V
1: aload 0
getfield javax.swing.undo.StateEdit.object:Ljavax/swing/undo/StateEditable;
aload 0
getfield javax.swing.undo.StateEdit.preState:Ljava/util/Hashtable;
invokeinterface javax.swing.undo.StateEditable.restoreState:(Ljava/util/Hashtable;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/StateEdit;
public void redo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.redo:()V
1: aload 0
getfield javax.swing.undo.StateEdit.object:Ljavax/swing/undo/StateEditable;
aload 0
getfield javax.swing.undo.StateEdit.postState:Ljava/util/Hashtable;
invokeinterface javax.swing.undo.StateEditable.restoreState:(Ljava/util/Hashtable;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/undo/StateEdit;
public java.lang.String getPresentationName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.StateEdit.undoRedoName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/undo/StateEdit;
protected void removeRedundantState();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=1
start local 0 0: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 1
start local 1 1: aload 0
getfield javax.swing.undo.StateEdit.preState:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.keys:()Ljava/util/Enumeration;
astore 2
start local 2 2: goto 7
3: StackMap locals: java.util.Vector java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
astore 3
start local 3 4: aload 0
getfield javax.swing.undo.StateEdit.postState:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.containsKey:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
getfield javax.swing.undo.StateEdit.postState:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
aload 0
getfield javax.swing.undo.StateEdit.preState:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 1
aload 3
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 3 7: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
8: aload 1
invokevirtual java.util.Vector.size:()I
iconst_1
isub
istore 3
start local 3 9: goto 14
10: StackMap locals: int
StackMap stack:
aload 1
iload 3
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
astore 4
start local 4 11: aload 0
getfield javax.swing.undo.StateEdit.preState:Ljava/util/Hashtable;
aload 4
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
12: aload 0
getfield javax.swing.undo.StateEdit.postState:Ljava/util/Hashtable;
aload 4
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 13: iinc 3 -1
StackMap locals:
StackMap stack:
14: iload 3
ifge 10
end local 3 15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljavax/swing/undo/StateEdit;
1 16 1 uselessKeys Ljava/util/Vector<Ljava/lang/Object;>;
2 16 2 myKeys Ljava/util/Enumeration;
4 7 3 myKey Ljava/lang/Object;
9 15 3 i I
11 13 4 myKey Ljava/lang/Object;
}
SourceFile: "StateEdit.java"