| |
|
| java.lang.Object org.acm.seguin.refactor.Refactoring org.acm.seguin.refactor.type.AddClassRefactoring
All known Subclasses: org.acm.seguin.refactor.type.AddAbstractParent, org.acm.seguin.refactor.type.AddChildRefactoring,
AddClassRefactoring | abstract public class AddClassRefactoring extends Refactoring (Code) | | Adds a class that is either a parent or a child of an existing class.
author: Chris Seguin |
AddClassRefactoring | public AddClassRefactoring()(Code) | | Constructor for the AddClassRefactoring object
|
addTargetClass | protected void addTargetClass(TypeSummary summary)(Code) | | Adds a target class - either the parent or the child, depending on what
we are adding
Parameters: summary - the summary to be extended |
createClass | abstract protected void createClass(TypeSummary existingType, String className)(Code) | | Creates a class
Parameters: existingType - the existing type Parameters: className - the name of the new class |
getNewClassName | protected String getNewClassName()(Code) | | Gets the name of the new class
the name |
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 the preconditions is not satisfied. The text of the exception provides a hint of what went wrong. |
setNewClassName | protected void setNewClassName(String value)(Code) | | Sets the name of the new class
Parameters: value - the name of the new class |
transform | protected void transform()(Code) | | Performs the transform on the rest of the classes
|
transformOriginal | abstract protected void transformOriginal(TypeSummary typeSummary)(Code) | | Transforms the original AST
Parameters: typeSummary - the particular type that is being changed |
|
|
|