| |
|
| java.lang.Object org.acm.seguin.refactor.Refactoring org.acm.seguin.refactor.method.MethodRefactoring org.acm.seguin.refactor.method.MoveMethodRefactoring
MoveMethodRefactoring | public class MoveMethodRefactoring extends MethodRefactoring (Code) | | Moves a method from one class to another. Generally used to move a method
into a local variable or a parameter.
author: Chris Seguin |
MoveMethodRefactoring | protected MoveMethodRefactoring()(Code) | | Constructor for the MoveMethodRefactoring object
|
addMethodToDest | protected void addMethodToDest(ComplexTransform transform, SimpleNode methodDecl, TypeSummary dest)(Code) | | Adds the method to the destination class
Parameters: transform - The feature to be added to the MethodToDest attribute Parameters: methodDecl - The feature to be added to the MethodToDest attribute Parameters: dest - The feature to be added to the MethodToDest attribute |
getDescription | public String getDescription()(Code) | | Gets the description of the refactoring
the description |
getID | public int getID()(Code) | | Gets the ID attribute of the MoveMethodRefactoring object
The ID value |
preconditions | protected void preconditions() throws RefactoringException(Code) | | Describes the preconditions that must be true for this refactoring to be
applied
exception: RefactoringException - thrown if one or more of thepreconditions is not satisfied. The text of the exception provides ahint of what went wrong. |
removeMethod | protected SimpleNode removeMethod(TypeSummary source, ComplexTransform transform)(Code) | | Removes the method from the source
Parameters: source - the source type Parameters: transform - the transform Description of the Returned Value |
setDestination | public void setDestination(Summary value)(Code) | | Sets the Destination attribute of the MoveMethodRefactoring object
Parameters: value - The new Destination value |
setMethod | public void setMethod(MethodSummary value)(Code) | | Sets the Method attribute of the MoveMethodRefactoring object
Parameters: value - The new Method value |
transform | protected void transform()(Code) | | Performs the transform on the rest of the classes
|
|
|
|