|
||||||||||
| 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.MoveClass
public class MoveClass
Main program for repackaging. This object simply stores the main program and interprets the command line arguments for repackaging one or more files.
| Field Summary | |
|---|---|
protected java.util.LinkedList |
fileList
The list of filenames |
protected java.lang.String |
initDir
The directory |
| 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 |
MoveClass()
Constructor for repackage |
| Method Summary | |
|---|---|
void |
add(java.lang.String filename)
Add a file to the list. |
java.lang.String |
getDescription()
Gets the Description attribute of the MoveClass object |
int |
getID()
Gets the id for this refactoring to track which refactorings are used. |
protected void |
preconditions()
Main processing method for the MoveClass object |
void |
setDestinationPackage(java.lang.String dest)
Set the destination package |
void |
setDirectory(java.lang.String dir)
Set the directory |
protected void |
transform()
Performs the transformation of the class |
protected void |
validateClassName(java.util.LinkedList inputFileList)
|
| 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 |
| Field Detail |
|---|
protected java.lang.String initDir
protected java.util.LinkedList fileList
| Constructor Detail |
|---|
protected MoveClass()
| Method Detail |
|---|
public void setDestinationPackage(java.lang.String dest)
dest - the package namepublic void setDirectory(java.lang.String dir)
dir - the initial directorypublic java.lang.String getDescription()
getDescription in class Refactoringpublic int getID()
getID in class Refactoringpublic void add(java.lang.String filename)
filename - the file to add
protected void preconditions()
throws RefactoringException
preconditions in class RefactoringRefactoringException - Description of Exceptionprotected void transform()
transform in class Refactoring
protected void validateClassName(java.util.LinkedList inputFileList)
throws RefactoringException
RefactoringException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||