net.sf.rej.gui.action
Class InsertMethodAction
java.lang.Object
net.sf.rej.gui.action.InsertMethodAction
- All Implemented Interfaces:
- Undoable
public class InsertMethodAction
- extends java.lang.Object
- implements Undoable
An Undoable
action which adds a method definition to a class.
- Author:
- Sami Koivu
Method Summary |
void |
execute()
Execute the command/action that fulfills the Undoable contract. |
Code |
getCode()
|
void |
undo()
Undo all the changes caused by a call to the execute() method of this instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsertMethodAction
public InsertMethodAction(ClassFile cf,
java.lang.String methodName,
Descriptor desc,
AccessFlags accessFlags,
int maxStackSize,
int maxLocals,
java.util.List<java.lang.String> exceptionNames)
execute
public void execute()
- Description copied from interface:
Undoable
- Execute the command/action that fulfills the Undoable contract.
- Specified by:
execute
in interface Undoable
undo
public void undo()
- Description copied from interface:
Undoable
- Undo all the changes caused by a call to the execute() method of this instance.
- Specified by:
undo
in interface Undoable
getCode
public Code getCode()