|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.summary.TraversalVisitor
org.acm.seguin.refactor.type.TypeChangeVisitor
org.acm.seguin.refactor.type.MoveClassVisitor
public class MoveClassVisitor
Scans through the summary objects to create a list of files that reference a particular class.
| Constructor Summary | |
|---|---|
MoveClassVisitor(java.lang.String oldPackage,
java.lang.String newPackage,
java.io.File base,
ComplexTransform complex)
Determine if anything in this tree references these classes. |
|
| Method Summary | |
|---|---|
protected void |
add(java.lang.String newClassName)
Set the class name. |
protected void |
addRenamingTransforms(ComplexTransform refactoring,
FileSummary node,
java.lang.String className)
Gets the RenamingTransform |
protected java.util.LinkedList |
getAppropriateClasses(FileSummary node)
Gets the AppropriateClasses attribute of the TypeChangeVisitor object |
protected java.lang.String |
getCurrentPackage()
Return the current package |
protected TransformAST |
getFileSpecificTransform(FileSummary summary)
Gets the File Specific Transform |
protected java.io.File |
getNewFile(FileSummary node)
Gets the reference to the file where the refactored output should be sent |
protected AddImportTransform |
getNewImports(FileSummary node,
java.lang.String className)
Gets the New Imports transform |
protected RemoveImportTransform |
getRemoveImportTransform(ImportSummary node)
Gets the Remove Imports transform |
| Methods inherited from class org.acm.seguin.refactor.type.TypeChangeVisitor |
|---|
getState, preconditions, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
| Methods inherited from class org.acm.seguin.summary.TraversalVisitor |
|---|
visit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MoveClassVisitor(java.lang.String oldPackage,
java.lang.String newPackage,
java.io.File base,
ComplexTransform complex)
oldPackage - the name of the old packagenewPackage - the name of the new packagebase - the base directorycomplex - Description of Parameter| Method Detail |
|---|
protected TransformAST getFileSpecificTransform(FileSummary summary)
getFileSpecificTransform in class TypeChangeVisitorsummary - Gets a file specific transform
protected AddImportTransform getNewImports(FileSummary node,
java.lang.String className)
getNewImports in class TypeChangeVisitornode - the file summaryclassName - the name of the class that is changing
protected RemoveImportTransform getRemoveImportTransform(ImportSummary node)
getRemoveImportTransform in class TypeChangeVisitornode - the import summary
protected java.util.LinkedList getAppropriateClasses(FileSummary node)
getAppropriateClasses in class TypeChangeVisitornode - Description of Parameter
protected java.io.File getNewFile(FileSummary node)
getNewFile in class TypeChangeVisitornode - the files summary
protected java.lang.String getCurrentPackage()
getCurrentPackage in class TypeChangeVisitor
protected void addRenamingTransforms(ComplexTransform refactoring,
FileSummary node,
java.lang.String className)
addRenamingTransforms in class TypeChangeVisitorrefactoring - the refactoringnode - the file summary to referenceclassName - the name of the class that is changingprotected void add(java.lang.String newClassName)
newClassName - the new class name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||