|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.refactor.Refactoring
org.acm.seguin.refactor.type.RemoveEmptyClassRefactoring
public class RemoveEmptyClassRefactoring
Removes a particular class that is an abstract parent.
| 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 |
RemoveEmptyClassRefactoring()
Constructor for the RemoveEmptyClassRefactoring object |
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Gets the description of the refactoring |
protected FileSummary |
getFileSummary()
Gets the FileSummary attribute of the RemoveEmptyClassRefactoring object |
int |
getID()
Gets the id for this refactoring to track which refactorings are used. |
protected void |
preconditions()
Checks the preconditions that must be true for this refactoring to be applied. |
void |
setClass(java.lang.String packageName,
java.lang.String className)
Sets the ChildClass attribute of the RemoveAbstractParent object |
void |
setClass(TypeSummary summary)
Sets the ChildClass attribute of the RemoveAbstractParent object |
protected void |
transform()
Performs the refactoring by traversing through the files and updating them. |
| 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 |
|---|
protected RemoveEmptyClassRefactoring()
| Method Detail |
|---|
public void setClass(java.lang.String packageName,
java.lang.String className)
packageName - The new Class valueclassName - The new Class valuepublic void setClass(TypeSummary summary)
summary - The new Class valuepublic java.lang.String getDescription()
getDescription in class Refactoringpublic int getID()
getID in class Refactoringprotected FileSummary getFileSummary()
protected void preconditions()
throws RefactoringException
preconditions in class RefactoringRefactoringException - The exceptionprotected void transform()
transform in class Refactoring
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||