| java.lang.Object org.acm.seguin.summary.TraversalVisitor org.acm.seguin.refactor.type.TypeChangeVisitor org.acm.seguin.refactor.type.RenameClassVisitor
All known Subclasses: org.acm.seguin.refactor.type.RemoveClassVisitor,
RenameClassVisitor | public class RenameClassVisitor extends TypeChangeVisitor (Code) | | Renames a class from one name to another.
author: Chris Seguin |
newClassName | protected String newClassName(Code) | | Description of the Field
|
oldClassName | protected String oldClassName(Code) | | Description of the Field
|
packageName | protected String packageName(Code) | | Description of the Field
|
RenameClassVisitor | public RenameClassVisitor(String packageName, String oldClass, String newClass, File base, ComplexTransform complex)(Code) | | Determine if anything in this tree references these classes.
Parameters: base - the base directory Parameters: packageName - Description of Parameter Parameters: oldClass - Description of Parameter Parameters: newClass - Description of Parameter Parameters: complex - Description of Parameter |
addRenamingTransforms | protected void addRenamingTransforms(ComplexTransform refactoring, FileSummary node, String className)(Code) | | Gets the RenamingTransform
Parameters: refactoring - the refactoring Parameters: node - the file summary to reference Parameters: className - the name of the class that is changing |
alreadyImportsType | protected void alreadyImportsType(ComplexTransform refactoring, ASTName oldOne, FileSummary node, TypeSummary importedType)(Code) | | We are performing the transformation on a refactoring that already has
that type imported from another class
Parameters: refactoring - the complex transformation Parameters: oldOne - the old class name Parameters: node - the file that is being changed Parameters: importedType - the type that we are supposedly importing |
getAppropriateClasses | protected LinkedList getAppropriateClasses(FileSummary node)(Code) | | Gets the AppropriateClasses attribute of the TypeChangeVisitor object
Parameters: node - Description of Parameter The AppropriateClasses value |
getCurrentPackage | protected String getCurrentPackage()(Code) | | Return the current package
the current package of the class |
getFileSpecificTransform | protected TransformAST getFileSpecificTransform(FileSummary summary)(Code) | | Gets the File Specific Transform
Parameters: summary - Gets a file specific transform The FileSpecificTransform value |
getNewFile | protected File getNewFile(FileSummary node)(Code) | | Gets the reference to the file where the refactored output should be sent
Parameters: node - the files summary The NewFile value |
getNewImports | protected AddImportTransform getNewImports(FileSummary node, String className)(Code) | | Gets the New Imports transform
Parameters: node - the file summary Parameters: className - the name of the class that is changing The NewImports value |
getNewName | protected ASTName getNewName()(Code) | | Gets the new name
an ASTName containing the new name |
Methods inherited from org.acm.seguin.refactor.type.TypeChangeVisitor | abstract protected void addRenamingTransforms(ComplexTransform refactoring, FileSummary node, String className)(Code)(Java Doc) abstract protected LinkedList getAppropriateClasses(FileSummary node)(Code)(Java Doc) abstract protected String getCurrentPackage()(Code)(Java Doc) abstract protected TransformAST getFileSpecificTransform(FileSummary summary)(Code)(Java Doc) abstract protected File getNewFile(FileSummary node)(Code)(Java Doc) abstract protected AddImportTransform getNewImports(FileSummary node, String className)(Code)(Java Doc) abstract protected RemoveImportTransform getRemoveImportTransform(ImportSummary node)(Code)(Java Doc) protected State getState(boolean foundImport, FileSummary node, String className)(Code)(Java Doc) protected boolean preconditions(FileSummary summary)(Code)(Java Doc) public Object visit(Summary node, Object data)(Code)(Java Doc) public Object visit(FileSummary node, Object data)(Code)(Java Doc) public Object visit(ImportSummary node, Object data)(Code)(Java Doc) public Object visit(TypeSummary node, Object data)(Code)(Java Doc) public Object visit(MethodSummary node, Object data)(Code)(Java Doc) public Object visit(FieldSummary node, Object data)(Code)(Java Doc) public Object visit(ParameterSummary node, Object data)(Code)(Java Doc) public Object visit(LocalVariableSummary node, Object data)(Code)(Java Doc) public Object visit(VariableSummary node, Object data)(Code)(Java Doc) public Object visit(TypeDeclSummary node, Object data)(Code)(Java Doc) public Object visit(MessageSendSummary node, Object data)(Code)(Java Doc) public Object visit(FieldAccessSummary node, Object data)(Code)(Java Doc)
|
Methods inherited from org.acm.seguin.summary.TraversalVisitor | public Object visit(Summary node, Object data)(Code)(Java Doc) public void visit(Object data)(Code)(Java Doc) public Object visit(PackageSummary node, Object data)(Code)(Java Doc) public Object visit(FileSummary node, Object data)(Code)(Java Doc) public Object visit(ImportSummary node, Object data)(Code)(Java Doc) public Object visit(TypeSummary node, Object data)(Code)(Java Doc) public Object visit(MethodSummary node, Object data)(Code)(Java Doc) public Object visit(FieldSummary node, Object data)(Code)(Java Doc) public Object visit(ParameterSummary node, Object data)(Code)(Java Doc) public Object visit(LocalVariableSummary node, Object data)(Code)(Java Doc) public Object visit(VariableSummary node, Object data)(Code)(Java Doc) public Object visit(TypeDeclSummary node, Object data)(Code)(Java Doc) public Object visit(MessageSendSummary node, Object data)(Code)(Java Doc) public Object visit(FieldAccessSummary node, Object data)(Code)(Java Doc)
|
|
|