org.acm.seguin.refactor.method
Class RenameParameterRefactoring

java.lang.Object
  extended by org.acm.seguin.refactor.Refactoring
      extended by org.acm.seguin.refactor.method.RenameParameterRefactoring

public class RenameParameterRefactoring
extends Refactoring

Refactoring to allow a user to rename a parameter

Author:
Chris Seguin

Field Summary
 
Fields inherited from class org.acm.seguin.refactor.Refactoring
ADD_CHILD, ADD_PARENT, EXTRACT_INTERFACE, EXTRACT_METHOD, MOVE_METHOD, PUSH_DOWN_FIELD, PUSH_DOWN_METHOD, PUSH_UP_ABSTRACT_METHOD, PUSH_UP_FIELD, PUSH_UP_METHOD, REMOVE_CLASS, RENAME_CLASS, RENAME_FIELD, RENAME_METHOD, RENAME_PARAMETER, REPACKAGE
 
Constructor Summary
protected RenameParameterRefactoring()
          Constructor for the RenameParameterRefactoring object
 
Method Summary
 java.lang.String getDescription()
          Gets the Description attribute of the RenameParameterRefactoring object
 int getID()
          Gets the ID attribute of the RenameParameterRefactoring object
protected  void preconditions()
          Description of the Method
 void setMethodSummary(MethodSummary value)
          Sets the MethodSummary attribute of the RenameParameterRefactoring object
 void setNewName(java.lang.String value)
          Sets the NewName attribute of the RenameParameterRefactoring object
 void setParameterSummary(ParameterSummary value)
          Sets the ParameterSummary attribute of the RenameParameterRefactoring object
protected  void transform()
          Perform the transformation
 
Methods inherited from class org.acm.seguin.refactor.Refactoring
checkDestinationFile, getComplexTransform, run, setComplexTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameParameterRefactoring

protected RenameParameterRefactoring()
Constructor for the RenameParameterRefactoring object

Method Detail

setNewName

public void setNewName(java.lang.String value)
Sets the NewName attribute of the RenameParameterRefactoring object

Parameters:
value - The new NewName value

setParameterSummary

public void setParameterSummary(ParameterSummary value)
Sets the ParameterSummary attribute of the RenameParameterRefactoring object

Parameters:
value - The new ParameterSummary value

setMethodSummary

public void setMethodSummary(MethodSummary value)
Sets the MethodSummary attribute of the RenameParameterRefactoring object

Parameters:
value - The new MethodSummary value

getDescription

public java.lang.String getDescription()
Gets the Description attribute of the RenameParameterRefactoring object

Specified by:
getDescription in class Refactoring
Returns:
The Description value

getID

public int getID()
Gets the ID attribute of the RenameParameterRefactoring object

Specified by:
getID in class Refactoring
Returns:
The ID value

preconditions

protected void preconditions()
                      throws RefactoringException
Description of the Method

Specified by:
preconditions in class Refactoring
Throws:
RefactoringException - Description of Exception

transform

protected void transform()
Perform the transformation

Specified by:
transform in class Refactoring