| |
|
| java.lang.Object org.acm.seguin.refactor.Refactoring org.acm.seguin.refactor.method.ExtractMethodRefactoring
ExtractMethodRefactoring | public class ExtractMethodRefactoring extends Refactoring (Code) | | Refactoring class that extracts a portion of the method and creates a new
method with what the user has selected.
author: Chris Seguin author: Mike Atkinson version: $Id: ExtractMethodRefactoring.java,v 1.7 2003/10/30 15:24:23 mikeatkinson Exp $ |
PACKAGE | final public static int PACKAGE(Code) | | The extracted method should have package scope
|
PRIVATE | final public static int PRIVATE(Code) | | The extracted method should be private
|
PROTECTED | final public static int PROTECTED(Code) | | The extracted method should have protected scope
|
PUBLIC | final public static int PUBLIC(Code) | | The extracted method should have public scope
|
ExtractMethodRefactoring | protected ExtractMethodRefactoring()(Code) | | Constructor for the ExtractMethodRefactoring object
|
getDescription | public String getDescription()(Code) | | Gets the Description attribute of the ExtractMethodRefactoring object
The Description value |
getFullFile | public String getFullFile()(Code) | | Gets the FullFile attribute of the ExtractMethodRefactoring object
The FullFile value |
getID | public int getID()(Code) | | Gets the ID attribute of the ExtractMethodRefactoring object
The ID value |
getReturnType | public Object getReturnType()(Code) | | Gets the return type for the extracted method
The return type |
getSignature | public String getSignature()(Code) | | Gets the Signature attribute of the ExtractMethodRefactoring object
The Signature value |
isStatement | public boolean isStatement()(Code) | | Gets the Statement attribute of the ExtractMethodRefactoring object
The Statement value |
setFullFile | public void setFullFile(String value)(Code) | | Sets the FullFile attribute of the ExtractMethodRefactoring object
Parameters: value - The new FullFile value |
setFullFile | public void setFullFile(StringBuffer value)(Code) | | Sets the FullFile attribute of the ExtractMethodRefactoring object
Parameters: value - The new FullFile value |
setMethodName | public void setMethodName(String value)(Code) | | Sets the MethodName attribute of the ExtractMethodRefactoring object
Parameters: value - The new MethodName value |
setParameterOrder | public void setParameterOrder(Object[] data)(Code) | | Sets the order of the parameters
Parameters: data - The new ParameterOrder value |
setProtection | public void setProtection(int value)(Code) | | Sets the Protection attribute of the ExtractMethodRefactoring object
Parameters: value - The new Protection value |
setReturnType | public void setReturnType(Object obj)(Code) | | Sets the return type for the extracted method
Parameters: obj - The new ReturnType value |
setSelection | public void setSelection(String value) throws RefactoringException(Code) | | Sets the Selection attribute of the ExtractMethodRefactoring object
Parameters: value - The new Selection value |
transform | protected void transform()(Code) | | Actually make the transformation
|
|
|
|