public class javax.swing.undo.CompoundEdit extends javax.swing.undo.AbstractUndoableEdit
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.undo.CompoundEdit
super_class: javax.swing.undo.AbstractUndoableEdit
{
boolean inProgress;
descriptor: Z
flags: (0x0000)
protected java.util.Vector<javax.swing.undo.UndoableEdit> edits;
descriptor: Ljava/util/Vector;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Vector<Ljavax/swing/undo/UndoableEdit;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.<init>:()V
1: aload 0
iconst_1
putfield javax.swing.undo.CompoundEdit.inProgress:Z
2: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/CompoundEdit;
public void undo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.undo:()V
1: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
istore 1
start local 1 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
iload 1
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
astore 2
start local 2 4: aload 2
invokeinterface javax.swing.undo.UndoableEdit.undo:()V
end local 2 5: StackMap locals:
StackMap stack:
iload 1
iinc 1 -1
ifgt 3
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/undo/CompoundEdit;
2 7 1 i I
4 5 2 e Ljavax/swing/undo/UndoableEdit;
Exceptions:
throws javax.swing.undo.CannotUndoException
public void redo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.redo:()V
1: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.elements:()Ljava/util/Enumeration;
astore 1
start local 1 2: goto 4
3: StackMap locals: java.util.Enumeration
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
invokeinterface javax.swing.undo.UndoableEdit.redo:()V
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/undo/CompoundEdit;
2 6 1 cursor Ljava/util/Enumeration;
Exceptions:
throws javax.swing.undo.CannotRedoException
protected javax.swing.undo.UndoableEdit lastEdit();
descriptor: ()Ljavax/swing/undo/UndoableEdit;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
istore 1
start local 1 1: iload 1
ifle 3
2: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
iload 1
iconst_1
isub
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
areturn
3: StackMap locals: int
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/CompoundEdit;
1 4 1 count I
public void die();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
istore 1
start local 1 1: iload 1
iconst_1
isub
istore 2
start local 2 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
iload 2
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.die:()V
end local 3 5: iinc 2 -1
StackMap locals:
StackMap stack:
6: iload 2
ifge 3
end local 2 7: aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.die:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/undo/CompoundEdit;
1 9 1 size I
2 7 2 i I
4 5 3 e Ljavax/swing/undo/UndoableEdit;
public boolean addEdit(javax.swing.undo.UndoableEdit);
descriptor: (Ljavax/swing/undo/UndoableEdit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.undo.CompoundEdit.inProgress:Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.undo.CompoundEdit.lastEdit:()Ljavax/swing/undo/UndoableEdit;
astore 2
start local 2 3: aload 2
ifnonnull 6
4: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
5: goto 10
6: StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
aload 2
aload 1
invokeinterface javax.swing.undo.UndoableEdit.addEdit:(Ljavax/swing/undo/UndoableEdit;)Z
ifne 10
7: aload 1
aload 2
invokeinterface javax.swing.undo.UndoableEdit.replaceEdit:(Ljavax/swing/undo/UndoableEdit;)Z
ifeq 9
8: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
iconst_1
isub
invokevirtual java.util.Vector.removeElementAt:(I)V
9: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/swing/undo/CompoundEdit;
0 11 1 anEdit Ljavax/swing/undo/UndoableEdit;
3 11 2 last Ljavax/swing/undo/UndoableEdit;
MethodParameters:
Name Flags
anEdit
public void end();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield javax.swing.undo.CompoundEdit.inProgress:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/undo/CompoundEdit;
public boolean canUndo();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.undo.CompoundEdit.isInProgress:()Z
ifne 1
aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.canUndo:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/undo/CompoundEdit;
public boolean canRedo();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.undo.CompoundEdit.isInProgress:()Z
ifne 1
aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.canRedo:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/undo/CompoundEdit;
public boolean isInProgress();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.CompoundEdit.inProgress:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/undo/CompoundEdit;
public boolean isSignificant();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
invokevirtual java.util.Vector.elements:()Ljava/util/Enumeration;
astore 1
start local 1 1: goto 4
2: StackMap locals: java.util.Enumeration
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.swing.undo.UndoableEdit
invokeinterface javax.swing.undo.UndoableEdit.isSignificant:()Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 2
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/undo/CompoundEdit;
1 6 1 cursor Ljava/util/Enumeration;
public java.lang.String getPresentationName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.undo.CompoundEdit.lastEdit:()Ljavax/swing/undo/UndoableEdit;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface javax.swing.undo.UndoableEdit.getPresentationName:()Ljava/lang/String;
areturn
3: StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.getPresentationName:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/CompoundEdit;
1 4 1 last Ljavax/swing/undo/UndoableEdit;
public java.lang.String getUndoPresentationName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.undo.CompoundEdit.lastEdit:()Ljavax/swing/undo/UndoableEdit;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface javax.swing.undo.UndoableEdit.getUndoPresentationName:()Ljava/lang/String;
areturn
3: StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.getUndoPresentationName:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/CompoundEdit;
1 4 1 last Ljavax/swing/undo/UndoableEdit;
public java.lang.String getRedoPresentationName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.undo.CompoundEdit.lastEdit:()Ljavax/swing/undo/UndoableEdit;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface javax.swing.undo.UndoableEdit.getRedoPresentationName:()Ljava/lang/String;
areturn
3: StackMap locals: javax.swing.undo.UndoableEdit
StackMap stack:
aload 0
invokespecial javax.swing.undo.AbstractUndoableEdit.getRedoPresentationName:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/CompoundEdit;
1 4 1 last Ljavax/swing/undo/UndoableEdit;
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.AbstractUndoableEdit.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: ldc " inProgress: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.swing.undo.CompoundEdit.inProgress:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
2: ldc " edits: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.swing.undo.CompoundEdit.edits:Ljava/util/Vector;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/undo/CompoundEdit;
}
SourceFile: "CompoundEdit.java"